Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 1464074b894640d8d19e9104b96849e9526581f8..038363c7c0ff8c996483948c03521fc370964acb 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -109,6 +109,7 @@ namespace internal { |
struct DoubleConstant BASE_EMBEDDED { |
double min_int; |
double one_half; |
+double minus_one; |
double minus_one_half; |
double negative_infinity; |
double the_hole_nan; |
@@ -950,6 +951,7 @@ void RelocInfo::Verify(Isolate* isolate) { |
void ExternalReference::SetUp() { |
double_constants.min_int = kMinInt; |
double_constants.one_half = 0.5; |
+ double_constants.minus_one = -1; |
double_constants.minus_one_half = -0.5; |
double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64); |
double_constants.negative_infinity = -V8_INFINITY; |
@@ -1274,6 +1276,12 @@ ExternalReference ExternalReference::address_of_minus_one_half() { |
} |
+ExternalReference ExternalReference::address_of_minus_one() { |
+ return ExternalReference( |
+ reinterpret_cast<void*>(&double_constants.minus_one)); |
+} |
+ |
+ |
ExternalReference ExternalReference::address_of_negative_infinity() { |
return ExternalReference( |
reinterpret_cast<void*>(&double_constants.negative_infinity)); |