| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 __ JumpIfNotRoot(x10, Heap::kTheHoleValueRootIndex, &assign); | 2178 __ JumpIfNotRoot(x10, Heap::kTheHoleValueRootIndex, &assign); |
| 2179 __ Mov(x10, Operand(var->name())); | 2179 __ Mov(x10, Operand(var->name())); |
| 2180 __ Push(x10); | 2180 __ Push(x10); |
| 2181 __ CallRuntime(Runtime::kThrowReferenceError, 1); | 2181 __ CallRuntime(Runtime::kThrowReferenceError, 1); |
| 2182 // Perform the assignment. | 2182 // Perform the assignment. |
| 2183 __ Bind(&assign); | 2183 __ Bind(&assign); |
| 2184 EmitStoreToStackLocalOrContextSlot(var, location); | 2184 EmitStoreToStackLocalOrContextSlot(var, location); |
| 2185 | 2185 |
| 2186 } else if (!var->is_const_mode() || op == Token::INIT_CONST) { | 2186 } else if (!var->is_const_mode() || op == Token::INIT_CONST) { |
| 2187 if (var->IsLookupSlot()) { | 2187 if (var->IsLookupSlot()) { |
| 2188 ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR || | |
| 2189 op == Token::ASSIGN_ADD); | |
| 2190 // Assignment to var. | 2188 // Assignment to var. |
| 2191 __ Mov(x11, Operand(var->name())); | 2189 __ Mov(x11, Operand(var->name())); |
| 2192 __ Mov(x10, Smi::FromInt(strict_mode())); | 2190 __ Mov(x10, Smi::FromInt(strict_mode())); |
| 2193 // jssp[0] : mode. | 2191 // jssp[0] : mode. |
| 2194 // jssp[8] : name. | 2192 // jssp[8] : name. |
| 2195 // jssp[16] : context. | 2193 // jssp[16] : context. |
| 2196 // jssp[24] : value. | 2194 // jssp[24] : value. |
| 2197 __ Push(x0, cp, x11, x10); | 2195 __ Push(x0, cp, x11, x10); |
| 2198 __ CallRuntime(Runtime::kStoreLookupSlot, 4); | 2196 __ CallRuntime(Runtime::kStoreLookupSlot, 4); |
| 2199 } else { | 2197 } else { |
| (...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4888 return previous_; | 4886 return previous_; |
| 4889 } | 4887 } |
| 4890 | 4888 |
| 4891 | 4889 |
| 4892 #undef __ | 4890 #undef __ |
| 4893 | 4891 |
| 4894 | 4892 |
| 4895 } } // namespace v8::internal | 4893 } } // namespace v8::internal |
| 4896 | 4894 |
| 4897 #endif // V8_TARGET_ARCH_ARM64 | 4895 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |