| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/ic/ic-compiler.h" | 10 #include "src/ic/ic-compiler.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 #define __ ACCESS_MASM(masm) | 15 #define __ ACCESS_MASM(masm) |
| 16 | 16 |
| 17 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, | 17 void PropertyICCompiler::GenerateRuntimeSetProperty( |
| 18 StrictMode strict_mode) { | 18 MacroAssembler* masm, LanguageMode language_mode) { |
| 19 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty"); | 19 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty"); |
| 20 | 20 |
| 21 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 21 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 22 StoreDescriptor::ValueRegister()); | 22 StoreDescriptor::ValueRegister()); |
| 23 | 23 |
| 24 __ Mov(x10, Smi::FromInt(strict_mode)); | 24 __ Mov(x10, Smi::FromInt(language_mode)); |
| 25 __ Push(x10); | 25 __ Push(x10); |
| 26 | 26 |
| 27 // Do tail-call to runtime routine. | 27 // Do tail-call to runtime routine. |
| 28 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); | 28 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 #undef __ | 32 #undef __ |
| 33 #define __ ACCESS_MASM(masm()) | 33 #define __ ACCESS_MASM(masm()) |
| 34 | 34 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); | 131 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
| 132 } | 132 } |
| 133 | 133 |
| 134 | 134 |
| 135 #undef __ | 135 #undef __ |
| 136 } | 136 } |
| 137 } // namespace v8::internal | 137 } // namespace v8::internal |
| 138 | 138 |
| 139 #endif // V8_TARGET_ARCH_ARM64 | 139 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |