v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-code-stubs.cc File Reference
#include <stdlib.h>
#include <limits>
#include "v8.h"
#include "cctest.h"
#include "code-stubs.h"
#include "test-code-stubs.h"
#include "factory.h"
#include "macro-assembler.h"
#include "platform.h"
Include dependency graph for test-code-stubs.cc:

Go to the source code of this file.

Macros

#define NaN   (OS::nan_value())
 
#define Infinity   (std::numeric_limits<double>::infinity())
 
#define RunOneTruncationTest(p1, p2)   RunOneTruncationTestWithTest(callWrapper, func, p1, p2)
 

Functions

int STDCALL ConvertDToICVersion (double d)
 
void RunOneTruncationTestWithTest (ConvertDToICallWrapper callWrapper, ConvertDToIFunc func, double from, double raw)
 
int32_t DefaultCallWrapper (ConvertDToIFunc func, double from)
 
void RunAllTruncationTests (ConvertDToIFunc func)
 
void RunAllTruncationTests (ConvertDToICallWrapper callWrapper, ConvertDToIFunc func)
 

Macro Definition Documentation

#define Infinity   (std::numeric_limits<double>::infinity())

Definition at line 96 of file test-code-stubs.cc.

Referenced by RunAllTruncationTests().

#define NaN   (OS::nan_value())

Definition at line 95 of file test-code-stubs.cc.

Referenced by RunAllTruncationTests().

#define RunOneTruncationTest (   p1,
  p2 
)    RunOneTruncationTestWithTest(callWrapper, func, p1, p2)

Definition at line 97 of file test-code-stubs.cc.

Referenced by RunAllTruncationTests().

Function Documentation

int STDCALL ConvertDToICVersion ( double  d)
int32_t DefaultCallWrapper ( ConvertDToIFunc  func,
double  from 
)

Definition at line 87 of file test-code-stubs.cc.

Referenced by RunAllTruncationTests().

void RunAllTruncationTests ( ConvertDToIFunc  func)

Definition at line 101 of file test-code-stubs.cc.

References DefaultCallWrapper(), and RunAllTruncationTests().

Referenced by RunAllTruncationTests(), and TEST().

void RunAllTruncationTests ( ConvertDToICallWrapper  callWrapper,
ConvertDToIFunc  func 
)

Definition at line 106 of file test-code-stubs.cc.

References Infinity, NaN, and RunOneTruncationTest.

void RunOneTruncationTestWithTest ( ConvertDToICallWrapper  callWrapper,
ConvertDToIFunc  func,
double  from,
double  raw 
)

Definition at line 77 of file test-code-stubs.cc.

References CHECK_EQ.