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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 __ mov(r2, Operand(var->name())); | 1213 __ mov(r2, Operand(var->name())); |
1214 __ push(r2); | 1214 __ push(r2); |
1215 __ CallRuntime(Runtime::kThrowReferenceError); | 1215 __ CallRuntime(Runtime::kThrowReferenceError); |
1216 } | 1216 } |
1217 __ b(done); | 1217 __ b(done); |
1218 } | 1218 } |
1219 } | 1219 } |
1220 | 1220 |
1221 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1221 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1222 TypeofMode typeof_mode) { | 1222 TypeofMode typeof_mode) { |
| 1223 #ifdef DEBUG |
1223 Variable* var = proxy->var(); | 1224 Variable* var = proxy->var(); |
1224 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1225 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1225 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1226 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1226 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1227 #endif |
1227 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1228 __ mov(LoadGlobalDescriptor::SlotRegister(), |
1228 __ mov(LoadDescriptor::SlotRegister(), | |
1229 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1229 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1230 CallLoadGlobalIC(typeof_mode); | 1230 CallLoadGlobalIC(typeof_mode); |
1231 } | 1231 } |
1232 | 1232 |
1233 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1233 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1234 TypeofMode typeof_mode) { | 1234 TypeofMode typeof_mode) { |
1235 // Record position before possible IC call. | 1235 // Record position before possible IC call. |
1236 SetExpressionPosition(proxy); | 1236 SetExpressionPosition(proxy); |
1237 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1237 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1238 Variable* var = proxy->var(); | 1238 Variable* var = proxy->var(); |
(...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3694 DCHECK(kOSRBranchInstruction == br_instr); | 3694 DCHECK(kOSRBranchInstruction == br_instr); |
3695 | 3695 |
3696 DCHECK(interrupt_address == | 3696 DCHECK(interrupt_address == |
3697 isolate->builtins()->OnStackReplacement()->entry()); | 3697 isolate->builtins()->OnStackReplacement()->entry()); |
3698 return ON_STACK_REPLACEMENT; | 3698 return ON_STACK_REPLACEMENT; |
3699 } | 3699 } |
3700 | 3700 |
3701 } // namespace internal | 3701 } // namespace internal |
3702 } // namespace v8 | 3702 } // namespace v8 |
3703 #endif // V8_TARGET_ARCH_S390 | 3703 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |