| Index: src/assembler.cc
|
| ===================================================================
|
| --- src/assembler.cc (revision 7948)
|
| +++ src/assembler.cc (working copy)
|
| @@ -71,11 +71,25 @@
|
| const double DoubleConstant::min_int = kMinInt;
|
| const double DoubleConstant::one_half = 0.5;
|
| const double DoubleConstant::minus_zero = -0.0;
|
| +const double DoubleConstant::uint8_max_value = 255;
|
| +const double DoubleConstant::zero = 0.0;
|
| const double DoubleConstant::nan = OS::nan_value();
|
| const double DoubleConstant::negative_infinity = -V8_INFINITY;
|
| const char* RelocInfo::kFillerCommentString = "DEOPTIMIZATION PADDING";
|
|
|
| // -----------------------------------------------------------------------------
|
| +// Implementation of AssemblerBase
|
| +
|
| +AssemblerBase::AssemblerBase(Isolate* isolate)
|
| + : isolate_(isolate),
|
| + jit_cookie_(0) {
|
| + if (FLAG_mask_constants_with_cookie && isolate != NULL) {
|
| + jit_cookie_ = V8::RandomPrivate(isolate);
|
| + }
|
| +}
|
| +
|
| +
|
| +// -----------------------------------------------------------------------------
|
| // Implementation of Label
|
|
|
| int Label::pos() const {
|
| @@ -912,6 +926,18 @@
|
| }
|
|
|
|
|
| +ExternalReference ExternalReference::address_of_zero() {
|
| + return ExternalReference(reinterpret_cast<void*>(
|
| + const_cast<double*>(&DoubleConstant::zero)));
|
| +}
|
| +
|
| +
|
| +ExternalReference ExternalReference::address_of_uint8_max_value() {
|
| + return ExternalReference(reinterpret_cast<void*>(
|
| + const_cast<double*>(&DoubleConstant::uint8_max_value)));
|
| +}
|
| +
|
| +
|
| ExternalReference ExternalReference::address_of_negative_infinity() {
|
| return ExternalReference(reinterpret_cast<void*>(
|
| const_cast<double*>(&DoubleConstant::negative_infinity)));
|
|
|