Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 2cc0700439d3a8aa60bfca05741d93bc7fa1a483..24b3f4702fa26b082affd98c2445b3b19a916cbf 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -732,9 +732,9 @@ void FullCodeGenerator::EmitDeclaration(Variable* variable, |
prop->key()->AsLiteral()->handle()->IsSmi()); |
__ Set(ecx, Immediate(prop->key()->AsLiteral()->handle())); |
- Handle<Code> ic(isolate()->builtins()->builtin(is_strict_mode() |
- ? Builtins::KeyedStoreIC_Initialize_Strict |
- : Builtins::KeyedStoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
+ : isolate()->builtins()->KeyedStoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
} |
} |
@@ -1102,8 +1102,7 @@ void FullCodeGenerator::EmitLoadGlobalSlotCheckExtensions( |
// load IC call. |
__ mov(eax, GlobalObjectOperand()); |
__ mov(ecx, slot->var()->name()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::LoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
RelocInfo::Mode mode = (typeof_state == INSIDE_TYPEOF) |
? RelocInfo::CODE_TARGET |
: RelocInfo::CODE_TARGET_CONTEXT; |
@@ -1186,8 +1185,8 @@ void FullCodeGenerator::EmitDynamicLoadFromSlotFastCase( |
ContextSlotOperandCheckExtensions(obj_proxy->var()->AsSlot(), |
slow)); |
__ mov(eax, Immediate(key_literal->handle())); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::KeyedLoadIC_Initialize)); |
+ Handle<Code> ic = |
+ isolate()->builtins()->KeyedLoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
__ jmp(done); |
} |
@@ -1210,8 +1209,7 @@ void FullCodeGenerator::EmitVariableLoad(Variable* var) { |
// object on the stack. |
__ mov(eax, GlobalObjectOperand()); |
__ mov(ecx, var->name()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::LoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET_CONTEXT); |
context()->Plug(eax); |
@@ -1274,8 +1272,7 @@ void FullCodeGenerator::EmitVariableLoad(Variable* var) { |
__ mov(eax, Immediate(key_literal->handle())); |
// Do a keyed property load. |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::KeyedLoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
// Drop key and object left on the stack by IC. |
@@ -1386,9 +1383,9 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
VisitForAccumulatorValue(value); |
__ mov(ecx, Immediate(key->handle())); |
__ mov(edx, Operand(esp, 0)); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::StoreIC_Initialize_Strict |
- : Builtins::StoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->StoreIC_Initialize_Strict() |
+ : isolate()->builtins()->StoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
PrepareForBailoutForId(key->id(), NO_REGISTERS); |
} else { |
@@ -1637,16 +1634,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
SetSourcePosition(prop->position()); |
Literal* key = prop->key()->AsLiteral(); |
__ mov(ecx, Immediate(key->handle())); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::LoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
} |
void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
SetSourcePosition(prop->position()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::KeyedLoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
} |
@@ -1787,9 +1782,9 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) { |
__ mov(edx, eax); |
__ pop(eax); // Restore value. |
__ mov(ecx, prop->key()->AsLiteral()->handle()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::StoreIC_Initialize_Strict |
- : Builtins::StoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->StoreIC_Initialize_Strict() |
+ : isolate()->builtins()->StoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
break; |
} |
@@ -1810,9 +1805,9 @@ void FullCodeGenerator::EmitAssignment(Expression* expr, int bailout_ast_id) { |
__ pop(edx); |
} |
__ pop(eax); // Restore value. |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::KeyedStoreIC_Initialize_Strict |
- : Builtins::KeyedStoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
+ : isolate()->builtins()->KeyedStoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
break; |
} |
@@ -1836,9 +1831,9 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
// ecx, and the global object on the stack. |
__ mov(ecx, var->name()); |
__ mov(edx, GlobalObjectOperand()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::StoreIC_Initialize_Strict |
- : Builtins::StoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->StoreIC_Initialize_Strict() |
+ : isolate()->builtins()->StoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET_CONTEXT); |
} else if (op == Token::INIT_CONST) { |
@@ -1939,9 +1934,9 @@ void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
} else { |
__ pop(edx); |
} |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::StoreIC_Initialize_Strict |
- : Builtins::StoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->StoreIC_Initialize_Strict() |
+ : isolate()->builtins()->StoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
// If the assignment ends an initialization block, revert to fast case. |
@@ -1979,9 +1974,9 @@ void FullCodeGenerator::EmitKeyedPropertyAssignment(Assignment* expr) { |
} |
// Record source code position before IC call. |
SetSourcePosition(expr->position()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::KeyedStoreIC_Initialize_Strict |
- : Builtins::KeyedStoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
+ : isolate()->builtins()->KeyedStoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
// If the assignment ends an initialization block, revert to fast case. |
@@ -2257,8 +2252,7 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
// Record source code position for IC call. |
SetSourcePosition(prop->position()); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::KeyedLoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
// Push result (function). |
__ push(eax); |
@@ -2326,8 +2320,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ Set(eax, Immediate(arg_count)); |
__ mov(edi, Operand(esp, arg_count * kPointerSize)); |
- Handle<Code> construct_builtin(isolate()->builtins()->builtin( |
- Builtins::JSConstructCall)); |
+ Handle<Code> construct_builtin = |
+ isolate()->builtins()->JSConstructCall(); |
__ call(construct_builtin, RelocInfo::CONSTRUCT_CALL); |
context()->Plug(eax); |
} |
@@ -3873,9 +3867,9 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case NAMED_PROPERTY: { |
__ mov(ecx, prop->key()->AsLiteral()->handle()); |
__ pop(edx); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::StoreIC_Initialize_Strict |
- : Builtins::StoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->StoreIC_Initialize_Strict() |
+ : isolate()->builtins()->StoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
if (expr->is_postfix()) { |
@@ -3890,9 +3884,9 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
case KEYED_PROPERTY: { |
__ pop(ecx); |
__ pop(edx); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- is_strict_mode() ? Builtins::KeyedStoreIC_Initialize_Strict |
- : Builtins::KeyedStoreIC_Initialize)); |
+ Handle<Code> ic = is_strict_mode() |
+ ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
+ : isolate()->builtins()->KeyedStoreIC_Initialize(); |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |
PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
if (expr->is_postfix()) { |
@@ -3918,8 +3912,7 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) { |
Comment cmnt(masm_, "Global variable"); |
__ mov(eax, GlobalObjectOperand()); |
__ mov(ecx, Immediate(proxy->name())); |
- Handle<Code> ic(isolate()->builtins()->builtin( |
- Builtins::LoadIC_Initialize)); |
+ Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
// Use a regular load, not a contextual load, to avoid a reference |
// error. |
EmitCallIC(ic, RelocInfo::CODE_TARGET); |