v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#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"
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) |
#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().
int STDCALL ConvertDToICVersion | ( | double | d | ) |
Definition at line 44 of file test-code-stubs.cc.
References HeapNumber::kExponentBias, Double::kExponentMask, Double::kHiddenBit, Double::kPhysicalSignificandSize, and Double::kSignificandMask.
Referenced by TEST().
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.