Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index a68ed3f8d8d1599142c6831f228220b394dbf107..292014a5d53d3638880363f01cf414934d0cd022 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -3239,24 +3239,6 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
} |
-void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) { |
- DCHECK(ToRegister(instr->context()).is(cp)); |
- DCHECK(ToRegister(instr->result()).is(x0)); |
- |
- int const slot = instr->slot_index(); |
- int const depth = instr->depth(); |
- if (depth <= LoadGlobalViaContextStub::kMaximumDepth) { |
- __ Mov(LoadGlobalViaContextDescriptor::SlotRegister(), Operand(slot)); |
- Handle<Code> stub = |
- CodeFactory::LoadGlobalViaContext(isolate(), depth).code(); |
- CallCode(stub, RelocInfo::CODE_TARGET, instr); |
- } else { |
- __ Push(Smi::FromInt(slot)); |
- __ CallRuntime(Runtime::kLoadGlobalViaContext, 1); |
- } |
-} |
- |
- |
MemOperand LCodeGen::PrepareKeyedExternalArrayOperand( |
Register key, |
Register base, |
@@ -5367,30 +5349,6 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
} |
-void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) { |
- DCHECK(ToRegister(instr->context()).is(cp)); |
- DCHECK(ToRegister(instr->value()) |
- .is(StoreGlobalViaContextDescriptor::ValueRegister())); |
- |
- int const slot = instr->slot_index(); |
- int const depth = instr->depth(); |
- if (depth <= StoreGlobalViaContextStub::kMaximumDepth) { |
- __ Mov(StoreGlobalViaContextDescriptor::SlotRegister(), Operand(slot)); |
- Handle<Code> stub = CodeFactory::StoreGlobalViaContext( |
- isolate(), depth, instr->language_mode()) |
- .code(); |
- CallCode(stub, RelocInfo::CODE_TARGET, instr); |
- } else { |
- __ Push(Smi::FromInt(slot)); |
- __ Push(StoreGlobalViaContextDescriptor::ValueRegister()); |
- __ CallRuntime(is_strict(instr->language_mode()) |
- ? Runtime::kStoreGlobalViaContext_Strict |
- : Runtime::kStoreGlobalViaContext_Sloppy, |
- 2); |
- } |
-} |
- |
- |
void LCodeGen::DoStringAdd(LStringAdd* instr) { |
DCHECK(ToRegister(instr->context()).is(cp)); |
DCHECK(ToRegister(instr->left()).Is(x1)); |