| 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/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 | 1021 |
| 1022 Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( | 1022 Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
| 1023 Handle<JSObject> object, Handle<Name> name, | 1023 Handle<JSObject> object, Handle<Name> name, |
| 1024 Handle<ExecutableAccessorInfo> callback) { | 1024 Handle<ExecutableAccessorInfo> callback) { |
| 1025 ASM_LOCATION("NamedStoreHandlerCompiler::CompileStoreCallback"); | 1025 ASM_LOCATION("NamedStoreHandlerCompiler::CompileStoreCallback"); |
| 1026 Register holder_reg = Frontend(receiver(), name); | 1026 Register holder_reg = Frontend(receiver(), name); |
| 1027 | 1027 |
| 1028 // Stub never generated for non-global objects that require access checks. | 1028 // Stub never generated for non-global objects that require access checks. |
| 1029 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); | 1029 ASSERT(holder()->IsJSGlobalProxy() || !holder()->IsAccessCheckNeeded()); |
| 1030 | 1030 |
| 1031 // receiver() and holder_reg can alias. | 1031 // receiver() and holder_reg can alias. |
| 1032 ASSERT(!AreAliased(receiver(), scratch1(), scratch2(), value())); | 1032 ASSERT(!AreAliased(receiver(), scratch1(), scratch2(), value())); |
| 1033 ASSERT(!AreAliased(holder_reg, scratch1(), scratch2(), value())); | 1033 ASSERT(!AreAliased(holder_reg, scratch1(), scratch2(), value())); |
| 1034 __ Mov(scratch1(), Operand(callback)); | 1034 __ Mov(scratch1(), Operand(callback)); |
| 1035 __ Mov(scratch2(), Operand(name)); | 1035 __ Mov(scratch2(), Operand(name)); |
| 1036 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value()); | 1036 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value()); |
| 1037 | 1037 |
| 1038 // Do tail-call to the runtime system. | 1038 // Do tail-call to the runtime system. |
| 1039 ExternalReference store_callback_property = | 1039 ExternalReference store_callback_property = |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 | 1355 |
| 1356 // Miss case, call the runtime. | 1356 // Miss case, call the runtime. |
| 1357 __ Bind(&miss); | 1357 __ Bind(&miss); |
| 1358 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1358 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 | 1361 |
| 1362 } } // namespace v8::internal | 1362 } } // namespace v8::internal |
| 1363 | 1363 |
| 1364 #endif // V8_TARGET_ARCH_ARM64 | 1364 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |