| Index: src/runtime/runtime-numbers.cc
|
| diff --git a/src/runtime/runtime-numbers.cc b/src/runtime/runtime-numbers.cc
|
| index 8074e4102023fdccca82c8a943832ca12d233966..17c52e14f59111fcbcd48b69883bf717e2147d01 100644
|
| --- a/src/runtime/runtime-numbers.cc
|
| +++ b/src/runtime/runtime-numbers.cc
|
| @@ -5,6 +5,7 @@
|
| #include "src/v8.h"
|
|
|
| #include "src/arguments.h"
|
| +#include "src/bootstrapper.h"
|
| #include "src/codegen.h"
|
| #include "src/misc-intrinsics.h"
|
| #include "src/runtime/runtime.h"
|
| @@ -557,6 +558,21 @@ RUNTIME_FUNCTION(Runtime_SmiLexicographicCompare) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_GetRootNaN) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 0);
|
| + RUNTIME_ASSERT(isolate->bootstrapper()->IsActive());
|
| + return isolate->heap()->nan_value();
|
| +}
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_MaxSmi) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK(args.length() == 0);
|
| + return Smi::FromInt(Smi::kMaxValue);
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(RuntimeReference_NumberToString) {
|
| SealHandleScope shs(isolate);
|
| return __RT_impl_Runtime_NumberToStringRT(args, isolate);
|
|
|