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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 context()->Plug(r2); | 1214 context()->Plug(r2); |
1215 break; | 1215 break; |
1216 } | 1216 } |
1217 | 1217 |
1218 case VariableLocation::PARAMETER: | 1218 case VariableLocation::PARAMETER: |
1219 case VariableLocation::LOCAL: | 1219 case VariableLocation::LOCAL: |
1220 case VariableLocation::CONTEXT: { | 1220 case VariableLocation::CONTEXT: { |
1221 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); | 1221 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); |
1222 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1222 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
1223 : "[ Stack variable"); | 1223 : "[ Stack variable"); |
1224 if (NeedsHoleCheckForLoad(proxy)) { | 1224 if (proxy->needs_hole_check()) { |
1225 // Throw a reference error when using an uninitialized let/const | 1225 // Throw a reference error when using an uninitialized let/const |
1226 // binding in harmony mode. | 1226 // binding in harmony mode. |
1227 Label done; | 1227 Label done; |
1228 GetVar(r2, var); | 1228 GetVar(r2, var); |
1229 __ CompareRoot(r2, Heap::kTheHoleValueRootIndex); | 1229 __ CompareRoot(r2, Heap::kTheHoleValueRootIndex); |
1230 __ bne(&done); | 1230 __ bne(&done); |
1231 __ mov(r2, Operand(var->name())); | 1231 __ mov(r2, Operand(var->name())); |
1232 __ push(r2); | 1232 __ push(r2); |
1233 __ CallRuntime(Runtime::kThrowReferenceError); | 1233 __ CallRuntime(Runtime::kThrowReferenceError); |
1234 __ bind(&done); | 1234 __ bind(&done); |
(...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3569 DCHECK(kOSRBranchInstruction == br_instr); | 3569 DCHECK(kOSRBranchInstruction == br_instr); |
3570 | 3570 |
3571 DCHECK(interrupt_address == | 3571 DCHECK(interrupt_address == |
3572 isolate->builtins()->OnStackReplacement()->entry()); | 3572 isolate->builtins()->OnStackReplacement()->entry()); |
3573 return ON_STACK_REPLACEMENT; | 3573 return ON_STACK_REPLACEMENT; |
3574 } | 3574 } |
3575 | 3575 |
3576 } // namespace internal | 3576 } // namespace internal |
3577 } // namespace v8 | 3577 } // namespace v8 |
3578 #endif // V8_TARGET_ARCH_S390 | 3578 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |