Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index b4c34ef76922cf8b997b6ecd72f34c88d85e3587..a21e6ff094ca2550b0b5d58929f995ff4303176c 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2521,7 +2521,7 @@ RUNTIME_FUNCTION(MaybeObject*, |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExec) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExecInternal) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 4); |
CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); |
@@ -2542,7 +2542,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpExec) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpConstructResult) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_RegExpConstructResultInternal) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 3); |
CONVERT_SMI_ARG_CHECKED(elements_count, 0); |
@@ -3204,7 +3204,7 @@ MUST_USE_RESULT static MaybeObject* CharFromCode(Isolate* isolate, |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_StringCharCodeAt) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_StringCharCodeAtInternal) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 2); |
@@ -4471,7 +4471,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringLocaleCompare) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_SubString) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_SubStringInternal) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 3); |
@@ -6831,7 +6831,7 @@ bool Runtime::IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToString) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberToStringInternal) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 1); |
@@ -7035,7 +7035,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NumberImul) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_StringAdd) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_StringAddInternal) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(String, str1, 0); |
@@ -7655,7 +7655,7 @@ static Object* FlatStringCompare(String* x, String* y) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_StringCompare) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_StringCompareInternal) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 2); |
@@ -14486,7 +14486,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TryMigrateInstance) { |
} |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFromCache) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_GetFromCacheInternal) { |
SealHandleScope shs(isolate); |
// This is only called from codegen, so checks might be more lax. |
CONVERT_ARG_CHECKED(JSFunctionResultCache, cache, 0); |
@@ -14644,7 +14644,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ListNatives) { |
#endif |
-RUNTIME_FUNCTION(MaybeObject*, Runtime_Log) { |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_LogInternal) { |
HandleScope handle_scope(isolate); |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(String, format, 0); |
@@ -14993,11 +14993,19 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MaxSmi) { |
{ Runtime::kInline##name, Runtime::INLINE, \ |
"_" #name, NULL, number_of_args, result_size }, |
+ |
+#define IO(name, number_of_args, result_size) \ |
+ { Runtime::kInlineOptimized##name, Runtime::INLINE_OPTIMIZED, \ |
+ "_" #name, FUNCTION_ADDR(Runtime_##name), number_of_args, result_size }, |
+ |
+ |
static const Runtime::Function kIntrinsicFunctions[] = { |
RUNTIME_FUNCTION_LIST(F) |
INLINE_FUNCTION_LIST(I) |
+ INLINE_OPTIMIZED_FUNCTION_LIST(IO) |
}; |
+#undef IO |
#undef I |
#undef F |