Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index fdfec415f117e341acceb68e90934cd057212453..d8b7b827b4d7d8d7618c64adf4879bdab12ad2c7 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -7,6 +7,7 @@ |
#include "src/arm64/lithium-codegen-arm64.h" |
#include "src/arm64/lithium-gap-resolver-arm64.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" |
@@ -1782,8 +1783,9 @@ void LCodeGen::DoArithmeticT(LArithmeticT* instr) { |
DCHECK(ToRegister(instr->right()).is(x0)); |
DCHECK(ToRegister(instr->result()).is(x0)); |
- BinaryOpICStub stub(isolate(), instr->op(), NO_OVERWRITE); |
- CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
+ Handle<Code> code = |
+ CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code(); |
+ CallCode(code, RelocInfo::CODE_TARGET, instr); |
} |
@@ -2548,7 +2550,7 @@ void LCodeGen::DoCmpT(LCmpT* instr) { |
DCHECK(ToRegister(instr->left()).Is(x1)); |
DCHECK(ToRegister(instr->right()).Is(x0)); |
- Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); |
+ Handle<Code> ic = CodeFactory::CompareIC(isolate(), op).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
// Signal that we don't inline smi code before this stub. |
InlineSmiCheckInfo::EmitNotInlined(masm()); |
@@ -3396,7 +3398,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); |
} |
@@ -3651,7 +3653,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); |
DCHECK(ToRegister(instr->result()).Is(x0)); |
@@ -3707,7 +3709,7 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
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); |
DCHECK(ToRegister(instr->result()).is(x0)); |
@@ -5345,9 +5347,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); |
} |
@@ -5564,7 +5565,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); |
InlineSmiCheckInfo::EmitNotInlined(masm()); |