| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 break; | 1268 break; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 case VariableLocation::PARAMETER: | 1271 case VariableLocation::PARAMETER: |
| 1272 case VariableLocation::LOCAL: | 1272 case VariableLocation::LOCAL: |
| 1273 case VariableLocation::CONTEXT: { | 1273 case VariableLocation::CONTEXT: { |
| 1274 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); | 1274 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); |
| 1275 Comment cmnt(masm_, var->IsContextSlot() | 1275 Comment cmnt(masm_, var->IsContextSlot() |
| 1276 ? "Context variable" | 1276 ? "Context variable" |
| 1277 : "Stack variable"); | 1277 : "Stack variable"); |
| 1278 if (NeedsHoleCheckForLoad(proxy)) { | 1278 if (proxy->needs_hole_check()) { |
| 1279 // Throw a reference error when using an uninitialized let/const | 1279 // Throw a reference error when using an uninitialized let/const |
| 1280 // binding in harmony mode. | 1280 // binding in harmony mode. |
| 1281 Label done; | 1281 Label done; |
| 1282 GetVar(x0, var); | 1282 GetVar(x0, var); |
| 1283 __ JumpIfNotRoot(x0, Heap::kTheHoleValueRootIndex, &done); | 1283 __ JumpIfNotRoot(x0, Heap::kTheHoleValueRootIndex, &done); |
| 1284 __ Mov(x0, Operand(var->name())); | 1284 __ Mov(x0, Operand(var->name())); |
| 1285 __ Push(x0); | 1285 __ Push(x0); |
| 1286 __ CallRuntime(Runtime::kThrowReferenceError); | 1286 __ CallRuntime(Runtime::kThrowReferenceError); |
| 1287 __ Bind(&done); | 1287 __ Bind(&done); |
| 1288 context()->Plug(x0); | 1288 context()->Plug(x0); |
| (...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3732 } | 3732 } |
| 3733 | 3733 |
| 3734 return INTERRUPT; | 3734 return INTERRUPT; |
| 3735 } | 3735 } |
| 3736 | 3736 |
| 3737 | 3737 |
| 3738 } // namespace internal | 3738 } // namespace internal |
| 3739 } // namespace v8 | 3739 } // namespace v8 |
| 3740 | 3740 |
| 3741 #endif // V8_TARGET_ARCH_ARM64 | 3741 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |