Index: src/x64/codegen-x64.cc |
=================================================================== |
--- src/x64/codegen-x64.cc (revision 3935) |
+++ src/x64/codegen-x64.cc (working copy) |
@@ -6345,7 +6345,7 @@ |
__ push(rsi); |
__ push(rdx); |
__ push(rcx); // Restore return address. |
- __ TailCallRuntime(ExternalReference(Runtime::kNewClosure), 2, 1); |
+ __ TailCallRuntime(Runtime::kNewClosure, 2, 1); |
} |
@@ -6387,7 +6387,7 @@ |
// Need to collect. Call into runtime system. |
__ bind(&gc); |
- __ TailCallRuntime(ExternalReference(Runtime::kNewContext), 1, 1); |
+ __ TailCallRuntime(Runtime::kNewContext, 1, 1); |
} |
@@ -6443,8 +6443,7 @@ |
__ ret(3 * kPointerSize); |
__ bind(&slow_case); |
- ExternalReference runtime(Runtime::kCreateArrayLiteralShallow); |
- __ TailCallRuntime(runtime, 3, 1); |
+ __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1); |
} |
@@ -6803,10 +6802,10 @@ |
// time or if regexp entry in generated code is turned off runtime switch or |
// at compilation. |
#ifndef V8_NATIVE_REGEXP |
- __ TailCallRuntime(ExternalReference(Runtime::kRegExpExec), 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
#else // V8_NATIVE_REGEXP |
if (!FLAG_regexp_entry_native) { |
- __ TailCallRuntime(ExternalReference(Runtime::kRegExpExec), 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
return; |
} |
@@ -7150,7 +7149,7 @@ |
// Do the runtime call to execute the regexp. |
__ bind(&runtime); |
- __ TailCallRuntime(ExternalReference(Runtime::kRegExpExec), 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
#endif // V8_NATIVE_REGEXP |
} |
@@ -7561,7 +7560,7 @@ |
// Do the runtime call to allocate the arguments object. |
__ bind(&runtime); |
- __ TailCallRuntime(ExternalReference(Runtime::kNewArgumentsFast), 3, 1); |
+ __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1); |
} |
@@ -7618,9 +7617,7 @@ |
__ pop(rbx); // Return address. |
__ push(rdx); |
__ push(rbx); |
- Runtime::Function* f = |
- Runtime::FunctionForId(Runtime::kGetArgumentsProperty); |
- __ TailCallRuntime(ExternalReference(f), 1, f->result_size); |
+ __ TailCallRuntime(Runtime::kGetArgumentsProperty, 1, 1); |
} |
@@ -8109,8 +8106,7 @@ |
__ push(rax); |
// Do tail-call to runtime routine. |
- Runtime::Function* f = Runtime::FunctionForId(Runtime::kStackGuard); |
- __ TailCallRuntime(ExternalReference(f), 1, f->result_size); |
+ __ TailCallRuntime(Runtime::kStackGuard, 1, 1); |
} |
@@ -9108,7 +9104,7 @@ |
// Just jump to runtime to add the two strings. |
__ bind(&string_add_runtime); |
- __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1); |
+ __ TailCallRuntime(Runtime::kStringAdd, 2, 1); |
} |
@@ -9302,7 +9298,7 @@ |
// Just jump to runtime to create the sub string. |
__ bind(&runtime); |
- __ TailCallRuntime(ExternalReference(Runtime::kSubString), 3, 1); |
+ __ TailCallRuntime(Runtime::kSubString, 3, 1); |
} |
@@ -9422,7 +9418,7 @@ |
// Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
// tagged as a small integer. |
__ bind(&runtime); |
- __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); |
+ __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
} |
#undef __ |