Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index b4d9441b58d4b205f983e1d3f032d589a1e51f84..d02a0ac51582989e7b1ec96bbe426d81b44b5435 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -2822,10 +2822,9 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
ASSERT(ToRegister(instr->result()).is(v0)); |
__ li(a2, Operand(instr->name())); |
- RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET |
- : RelocInfo::CODE_TARGET_CONTEXT; |
- Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
- CallCode(ic, mode, instr); |
+ ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
+ Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); |
+ CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -2860,10 +2859,10 @@ void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) { |
ASSERT(ToRegister(instr->value()).is(a0)); |
__ li(a2, Operand(instr->name())); |
- Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
- ? isolate()->builtins()->StoreIC_Initialize_Strict() |
- : isolate()->builtins()->StoreIC_Initialize(); |
- CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
+ Handle<Code> ic = StoreIC::initialize_stub(isolate(), |
+ instr->strict_mode_flag(), |
+ CONTEXTUAL); |
+ CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -2960,7 +2959,7 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
// Name is always in a2. |
__ li(a2, Operand(instr->name())); |
- Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); |
+ Handle<Code> ic = LoadIC::initialize_stub(isolate(), NOT_CONTEXTUAL); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3912,11 +3911,10 @@ void LCodeGen::DoCallNamed(LCallNamed* instr) { |
ASSERT(ToRegister(instr->result()).is(v0)); |
int arity = instr->arity(); |
- RelocInfo::Mode mode = RelocInfo::CODE_TARGET; |
Handle<Code> ic = |
- isolate()->stub_cache()->ComputeCallInitialize(arity, mode); |
+ isolate()->stub_cache()->ComputeCallInitialize(arity, NOT_CONTEXTUAL); |
__ li(a2, Operand(instr->name())); |
- CallCode(ic, mode, instr); |
+ CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3941,11 +3939,10 @@ void LCodeGen::DoCallGlobal(LCallGlobal* instr) { |
ASSERT(ToRegister(instr->result()).is(v0)); |
int arity = instr->arity(); |
- RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT; |
Handle<Code> ic = |
- isolate()->stub_cache()->ComputeCallInitialize(arity, mode); |
+ isolate()->stub_cache()->ComputeCallInitialize(arity, CONTEXTUAL); |
__ li(a2, Operand(instr->name())); |
- CallCode(ic, mode, instr); |
+ CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -4142,9 +4139,9 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
// Name is always in a2. |
__ li(a2, Operand(instr->name())); |
- Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
- ? isolate()->builtins()->StoreIC_Initialize_Strict() |
- : isolate()->builtins()->StoreIC_Initialize(); |
+ Handle<Code> ic = StoreIC::initialize_stub(isolate(), |
+ instr->strict_mode_flag(), |
+ NOT_CONTEXTUAL); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |