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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 | 1230 |
1231 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1231 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1232 TypeofMode typeof_mode) { | 1232 TypeofMode typeof_mode) { |
1233 Variable* var = proxy->var(); | 1233 Variable* var = proxy->var(); |
1234 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1234 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1235 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1235 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1236 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1236 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
1237 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1237 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1238 __ mov(LoadDescriptor::SlotRegister(), | 1238 __ mov(LoadDescriptor::SlotRegister(), |
1239 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1239 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1240 CallLoadIC(typeof_mode); | 1240 CallLoadGlobalIC(typeof_mode); |
1241 } | 1241 } |
1242 | 1242 |
1243 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1243 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1244 TypeofMode typeof_mode) { | 1244 TypeofMode typeof_mode) { |
1245 // Record position before possible IC call. | 1245 // Record position before possible IC call. |
1246 SetExpressionPosition(proxy); | 1246 SetExpressionPosition(proxy); |
1247 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1247 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1248 Variable* var = proxy->var(); | 1248 Variable* var = proxy->var(); |
1249 | 1249 |
1250 // Three cases: global variables, lookup variables, and all other types of | 1250 // Three cases: global variables, lookup variables, and all other types of |
(...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3715 DCHECK(kOSRBranchInstruction == br_instr); | 3715 DCHECK(kOSRBranchInstruction == br_instr); |
3716 | 3716 |
3717 DCHECK(interrupt_address == | 3717 DCHECK(interrupt_address == |
3718 isolate->builtins()->OnStackReplacement()->entry()); | 3718 isolate->builtins()->OnStackReplacement()->entry()); |
3719 return ON_STACK_REPLACEMENT; | 3719 return ON_STACK_REPLACEMENT; |
3720 } | 3720 } |
3721 | 3721 |
3722 } // namespace internal | 3722 } // namespace internal |
3723 } // namespace v8 | 3723 } // namespace v8 |
3724 #endif // V8_TARGET_ARCH_S390 | 3724 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |