| Index: src/arm/builtins-arm.cc
|
| diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc
|
| index e6d652564d6c6db48a4f848e6daca92ef8e136ef..bfaef960866cfe9ae33fcd2c6971205f917118e8 100644
|
| --- a/src/arm/builtins-arm.cc
|
| +++ b/src/arm/builtins-arm.cc
|
| @@ -442,9 +442,9 @@ void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
|
| // Jump to the generic array code if the specialized code cannot handle
|
| // the construction.
|
| __ bind(&generic_array_code);
|
| - Code* code = masm->isolate()->builtins()->builtin(
|
| - Builtins::ArrayCodeGeneric);
|
| - Handle<Code> array_code(code);
|
| +
|
| + Handle<Code> array_code =
|
| + Builtins::builtin(Builtins::ArrayCodeGeneric, masm->isolate());
|
| __ Jump(array_code, RelocInfo::CODE_TARGET);
|
| }
|
|
|
| @@ -475,9 +475,8 @@ void Builtins::Generate_ArrayConstructCode(MacroAssembler* masm) {
|
| // Jump to the generic construct code in case the specialized code cannot
|
| // handle the construction.
|
| __ bind(&generic_constructor);
|
| - Code* code = masm->isolate()->builtins()->builtin(
|
| - Builtins::JSConstructStubGeneric);
|
| - Handle<Code> generic_construct_stub(code);
|
| + Handle<Code> generic_construct_stub =
|
| + Builtins::builtin(Builtins::JSConstructStubGeneric, masm->isolate());
|
| __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
|
| }
|
|
|
| @@ -635,8 +634,8 @@ void Builtins::Generate_JSConstructCall(MacroAssembler* masm) {
|
| // Set expected number of arguments to zero (not changing r0).
|
| __ mov(r2, Operand(0, RelocInfo::NONE));
|
| __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR);
|
| - __ Jump(Handle<Code>(masm->isolate()->builtins()->builtin(
|
| - ArgumentsAdaptorTrampoline)), RelocInfo::CODE_TARGET);
|
| + __ Jump(builtin(ArgumentsAdaptorTrampoline, masm->isolate()),
|
| + RelocInfo::CODE_TARGET);
|
| }
|
|
|
|
|
| @@ -907,9 +906,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| // r1: constructor function
|
| if (is_api_function) {
|
| __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
|
| - Handle<Code> code = Handle<Code>(
|
| - masm->isolate()->builtins()->builtin(
|
| - Builtins::HandleApiCallConstruct));
|
| + Handle<Code> code =
|
| + Builtins::builtin(Builtins::HandleApiCallConstruct, masm->isolate());
|
| ParameterCount expected(0);
|
| __ InvokeCode(code, expected, expected,
|
| RelocInfo::CODE_TARGET, CALL_FUNCTION);
|
| @@ -1043,8 +1041,8 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
|
| // Invoke the code and pass argc as r0.
|
| __ mov(r0, Operand(r3));
|
| if (is_construct) {
|
| - __ Call(Handle<Code>(masm->isolate()->builtins()->builtin(
|
| - Builtins::JSConstructCall)), RelocInfo::CODE_TARGET);
|
| + __ Call(Builtins::builtin(Builtins::JSConstructCall, masm->isolate()),
|
| + RelocInfo::CODE_TARGET);
|
| } else {
|
| ParameterCount actual(r0);
|
| __ InvokeFunction(r1, actual, CALL_FUNCTION);
|
| @@ -1336,8 +1334,8 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
|
| // Expected number of arguments is 0 for CALL_NON_FUNCTION.
|
| __ mov(r2, Operand(0, RelocInfo::NONE));
|
| __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
|
| - __ Jump(Handle<Code>(masm->isolate()->builtins()->builtin(
|
| - ArgumentsAdaptorTrampoline)), RelocInfo::CODE_TARGET);
|
| + __ Jump(builtin(ArgumentsAdaptorTrampoline, masm->isolate()),
|
| + RelocInfo::CODE_TARGET);
|
| __ bind(&function);
|
| }
|
|
|
| @@ -1352,8 +1350,9 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
|
| __ mov(r2, Operand(r2, ASR, kSmiTagSize));
|
| __ ldr(r3, FieldMemOperand(r1, JSFunction::kCodeEntryOffset));
|
| __ cmp(r2, r0); // Check formal and actual parameter counts.
|
| - __ Jump(Handle<Code>(masm->isolate()->builtins()->builtin(
|
| - ArgumentsAdaptorTrampoline)), RelocInfo::CODE_TARGET, ne);
|
| + __ Jump(builtin(ArgumentsAdaptorTrampoline, masm->isolate()),
|
| + RelocInfo::CODE_TARGET,
|
| + ne);
|
|
|
| ParameterCount expected(0);
|
| __ InvokeCode(r3, expected, expected, JUMP_FUNCTION);
|
|
|