| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index d5c0468c46a17cb54444ae76fc20ee6d00292229..5828c1ecc559702dbec1310ced24303dd97d014c 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -7,6 +7,7 @@
|
| #include "src/arm/lithium-codegen-arm.h"
|
| #include "src/arm/lithium-gap-resolver-arm.h"
|
| #include "src/base/bits.h"
|
| +#include "src/code-factory.h"
|
| #include "src/code-stubs.h"
|
| #include "src/hydrogen-osr.h"
|
| #include "src/ic/stub-cache.h"
|
| @@ -2173,11 +2174,12 @@ void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
|
| DCHECK(ToRegister(instr->right()).is(r0));
|
| DCHECK(ToRegister(instr->result()).is(r0));
|
|
|
| - BinaryOpICStub stub(isolate(), instr->op(), NO_OVERWRITE);
|
| + Handle<Code> code =
|
| + CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code();
|
| // Block literal pool emission to ensure nop indicating no inlined smi code
|
| // is in the correct position.
|
| Assembler::BlockConstPoolScope block_const_pool(masm());
|
| - CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
|
| + CallCode(code, RelocInfo::CODE_TARGET, instr);
|
| }
|
|
|
|
|
| @@ -2609,7 +2611,7 @@ void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) {
|
| DCHECK(ToRegister(instr->context()).is(cp));
|
| Token::Value op = instr->op();
|
|
|
| - Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op);
|
| + Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| // This instruction also signals no smi code inlined.
|
| __ cmp(r0, Operand::Zero());
|
| @@ -2925,7 +2927,7 @@ void LCodeGen::DoCmpT(LCmpT* instr) {
|
| DCHECK(ToRegister(instr->context()).is(cp));
|
| Token::Value op = instr->op();
|
|
|
| - Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op);
|
| + Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| // This instruction also signals no smi code inlined.
|
| __ cmp(r0, Operand::Zero());
|
| @@ -3016,7 +3018,7 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
|
| EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr);
|
| }
|
| ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL;
|
| - Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
|
| + Handle<Code> ic = CodeFactory::LoadIC(isolate(), mode).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| }
|
|
|
| @@ -3138,7 +3140,7 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) {
|
| if (FLAG_vector_ics) {
|
| EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr);
|
| }
|
| - Handle<Code> ic = LoadIC::initialize_stub(isolate(), NOT_CONTEXTUAL);
|
| + Handle<Code> ic = CodeFactory::LoadIC(isolate(), NOT_CONTEXTUAL).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
|
| }
|
|
|
| @@ -3429,7 +3431,7 @@ void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
|
| EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr);
|
| }
|
|
|
| - Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
|
| + Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
|
| }
|
|
|
| @@ -4456,9 +4458,8 @@ void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) {
|
| DCHECK(ToRegister(instr->key()).is(StoreDescriptor::NameRegister()));
|
| DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister()));
|
|
|
| - Handle<Code> ic = instr->strict_mode() == STRICT
|
| - ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
|
| - : isolate()->builtins()->KeyedStoreIC_Initialize();
|
| + Handle<Code> ic =
|
| + CodeFactory::KeyedStoreIC(isolate(), instr->strict_mode()).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
|
| }
|
|
|
|
|