Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index eba17a19437b86de7c502faf8f1f3d99cf2ba8f8..d1176180942de6e2d91ec0e95b4ecd09addf5f46 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -11,12 +11,13 @@ |
#include "src/allocation-site-scopes.h" |
#include "src/api.h" |
#include "src/arguments.h" |
+#include "src/base/cpu.h" |
+#include "src/base/platform/platform.h" |
#include "src/bootstrapper.h" |
#include "src/codegen.h" |
#include "src/compilation-cache.h" |
#include "src/compiler.h" |
#include "src/conversions.h" |
-#include "src/cpu.h" |
#include "src/cpu-profiler.h" |
#include "src/date.h" |
#include "src/dateparser-inl.h" |
@@ -33,7 +34,6 @@ |
#include "src/liveedit.h" |
#include "src/misc-intrinsics.h" |
#include "src/parser.h" |
-#include "src/platform.h" |
#include "src/runtime.h" |
#include "src/runtime-profiler.h" |
#include "src/scopeinfo.h" |
@@ -6279,8 +6279,8 @@ RUNTIME_FUNCTION(Runtime_StringParseFloat) { |
CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
subject = String::Flatten(subject); |
- double value = StringToDouble( |
- isolate->unicode_cache(), *subject, ALLOW_TRAILING_JUNK, OS::nan_value()); |
+ double value = StringToDouble(isolate->unicode_cache(), *subject, |
+ ALLOW_TRAILING_JUNK, base::OS::nan_value()); |
return *isolate->factory()->NewNumber(value); |
} |
@@ -8555,7 +8555,7 @@ RUNTIME_FUNCTION(Runtime_GetOptimizationStatus) { |
sync_with_compiler_thread) { |
while (function->IsInOptimizationQueue()) { |
isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
- OS::Sleep(50); |
+ base::OS::Sleep(50); |
} |
} |
if (FLAG_always_opt) { |
@@ -9542,7 +9542,7 @@ RUNTIME_FUNCTION(Runtime_DateCurrentTime) { |
millis = 1388534400000.0; // Jan 1 2014 00:00:00 GMT+0000 |
millis += std::floor(isolate->heap()->synthetic_time()); |
} else { |
- millis = std::floor(OS::TimeCurrentMillis()); |
+ millis = std::floor(base::OS::TimeCurrentMillis()); |
} |
return *isolate->factory()->NewNumber(millis); |
} |
@@ -13198,7 +13198,7 @@ RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { |
RUNTIME_FUNCTION(Runtime_SystemBreak) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 0); |
- OS::DebugBreak(); |
+ base::OS::DebugBreak(); |
return isolate->heap()->undefined_value(); |
} |
@@ -14463,9 +14463,9 @@ RUNTIME_FUNCTION(Runtime_Abort) { |
CONVERT_SMI_ARG_CHECKED(message_id, 0); |
const char* message = GetBailoutReason( |
static_cast<BailoutReason>(message_id)); |
- OS::PrintError("abort: %s\n", message); |
+ base::OS::PrintError("abort: %s\n", message); |
isolate->PrintStack(stderr); |
- OS::Abort(); |
+ base::OS::Abort(); |
UNREACHABLE(); |
return NULL; |
} |
@@ -14475,9 +14475,9 @@ RUNTIME_FUNCTION(Runtime_AbortJS) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(String, message, 0); |
- OS::PrintError("abort: %s\n", message->ToCString().get()); |
+ base::OS::PrintError("abort: %s\n", message->ToCString().get()); |
isolate->PrintStack(stderr); |
- OS::Abort(); |
+ base::OS::Abort(); |
UNREACHABLE(); |
return NULL; |
} |