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-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 | 10 |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 __ Bind(&slow); | 967 __ Bind(&slow); |
968 __ IncrementCounter( | 968 __ IncrementCounter( |
969 masm->isolate()->counters()->keyed_load_external_array_slow(), 1, x4, x3); | 969 masm->isolate()->counters()->keyed_load_external_array_slow(), 1, x4, x3); |
970 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow); | 970 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow); |
971 | 971 |
972 // Miss case, call the runtime. | 972 // Miss case, call the runtime. |
973 __ Bind(&miss); | 973 __ Bind(&miss); |
974 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 974 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
975 } | 975 } |
976 | 976 |
| 977 |
| 978 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 979 StrictMode strict_mode) { |
| 980 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty"); |
| 981 |
| 982 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(), |
| 983 StoreIC::ValueRegister()); |
| 984 |
| 985 __ Mov(x10, Smi::FromInt(strict_mode)); |
| 986 __ Push(x10); |
| 987 |
| 988 // Do tail-call to runtime routine. |
| 989 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 990 } |
| 991 |
| 992 |
977 #undef __ | 993 #undef __ |
978 } | 994 } |
979 } // namespace v8::internal | 995 } // namespace v8::internal |
980 | 996 |
981 #endif // V8_TARGET_ARCH_ARM64 | 997 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |