OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 context()->Plug(r0); | 1280 context()->Plug(r0); |
1281 break; | 1281 break; |
1282 } | 1282 } |
1283 | 1283 |
1284 case VariableLocation::PARAMETER: | 1284 case VariableLocation::PARAMETER: |
1285 case VariableLocation::LOCAL: | 1285 case VariableLocation::LOCAL: |
1286 case VariableLocation::CONTEXT: { | 1286 case VariableLocation::CONTEXT: { |
1287 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); | 1287 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); |
1288 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1288 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
1289 : "[ Stack variable"); | 1289 : "[ Stack variable"); |
1290 if (NeedsHoleCheckForLoad(proxy)) { | 1290 if (proxy->needs_hole_check()) { |
1291 // Throw a reference error when using an uninitialized let/const | 1291 // Throw a reference error when using an uninitialized let/const |
1292 // binding in harmony mode. | 1292 // binding in harmony mode. |
1293 Label done; | 1293 Label done; |
1294 GetVar(r0, var); | 1294 GetVar(r0, var); |
1295 __ CompareRoot(r0, Heap::kTheHoleValueRootIndex); | 1295 __ CompareRoot(r0, Heap::kTheHoleValueRootIndex); |
1296 __ b(ne, &done); | 1296 __ b(ne, &done); |
1297 __ mov(r0, Operand(var->name())); | 1297 __ mov(r0, Operand(var->name())); |
1298 __ push(r0); | 1298 __ push(r0); |
1299 __ CallRuntime(Runtime::kThrowReferenceError); | 1299 __ CallRuntime(Runtime::kThrowReferenceError); |
1300 __ bind(&done); | 1300 __ bind(&done); |
(...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3726 DCHECK(interrupt_address == | 3726 DCHECK(interrupt_address == |
3727 isolate->builtins()->OnStackReplacement()->entry()); | 3727 isolate->builtins()->OnStackReplacement()->entry()); |
3728 return ON_STACK_REPLACEMENT; | 3728 return ON_STACK_REPLACEMENT; |
3729 } | 3729 } |
3730 | 3730 |
3731 | 3731 |
3732 } // namespace internal | 3732 } // namespace internal |
3733 } // namespace v8 | 3733 } // namespace v8 |
3734 | 3734 |
3735 #endif // V8_TARGET_ARCH_ARM | 3735 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |