OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 | 1223 |
1224 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1224 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1225 TypeofMode typeof_mode) { | 1225 TypeofMode typeof_mode) { |
1226 Variable* var = proxy->var(); | 1226 Variable* var = proxy->var(); |
1227 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1227 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1228 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1228 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1229 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1229 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
1230 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1230 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1231 __ mov(LoadDescriptor::SlotRegister(), | 1231 __ mov(LoadDescriptor::SlotRegister(), |
1232 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1232 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1233 CallLoadIC(typeof_mode); | 1233 CallLoadGlobalIC(typeof_mode); |
1234 } | 1234 } |
1235 | 1235 |
1236 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1236 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1237 TypeofMode typeof_mode) { | 1237 TypeofMode typeof_mode) { |
1238 // Record position before possible IC call. | 1238 // Record position before possible IC call. |
1239 SetExpressionPosition(proxy); | 1239 SetExpressionPosition(proxy); |
1240 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1240 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1241 Variable* var = proxy->var(); | 1241 Variable* var = proxy->var(); |
1242 | 1242 |
1243 // Three cases: global variables, lookup variables, and all other types of | 1243 // Three cases: global variables, lookup variables, and all other types of |
(...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3708 DCHECK(kOSRBranchInstruction == br_instr); | 3708 DCHECK(kOSRBranchInstruction == br_instr); |
3709 | 3709 |
3710 DCHECK(interrupt_address == | 3710 DCHECK(interrupt_address == |
3711 isolate->builtins()->OnStackReplacement()->entry()); | 3711 isolate->builtins()->OnStackReplacement()->entry()); |
3712 return ON_STACK_REPLACEMENT; | 3712 return ON_STACK_REPLACEMENT; |
3713 } | 3713 } |
3714 | 3714 |
3715 } // namespace internal | 3715 } // namespace internal |
3716 } // namespace v8 | 3716 } // namespace v8 |
3717 #endif // V8_TARGET_ARCH_S390 | 3717 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |