| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
| 8 | 8 |
| 9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
| 10 #include "src/arm64/assembler-arm64-inl.h" | 10 #include "src/arm64/assembler-arm64-inl.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Generate call to api function. | 104 // Generate call to api function. |
| 105 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 105 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
| 106 MacroAssembler* masm, const CallOptimization& optimization, | 106 MacroAssembler* masm, const CallOptimization& optimization, |
| 107 Handle<Map> receiver_map, Register receiver, Register scratch, | 107 Handle<Map> receiver_map, Register receiver, Register scratch, |
| 108 bool is_store, Register store_parameter, Register accessor_holder, | 108 bool is_store, Register store_parameter, Register accessor_holder, |
| 109 int accessor_index) { | 109 int accessor_index) { |
| 110 DCHECK(!AreAliased(accessor_holder, scratch)); | 110 DCHECK(!AreAliased(accessor_holder, scratch)); |
| 111 DCHECK(!AreAliased(receiver, scratch)); | 111 DCHECK(!AreAliased(receiver, scratch)); |
| 112 | 112 |
| 113 MacroAssembler::PushPopQueue queue(masm); | 113 MacroAssembler::PushPopQueue queue(masm); |
| 114 queue.Queue(accessor_holder); | |
| 115 queue.Queue(receiver); | 114 queue.Queue(receiver); |
| 116 // Write the arguments to the stack frame. | 115 // Write the arguments to the stack frame. |
| 117 if (is_store) { | 116 if (is_store) { |
| 118 DCHECK(!receiver.is(store_parameter)); | 117 DCHECK(!receiver.is(store_parameter)); |
| 119 DCHECK(!scratch.is(store_parameter)); | 118 DCHECK(!scratch.is(store_parameter)); |
| 120 queue.Queue(store_parameter); | 119 queue.Queue(store_parameter); |
| 121 } | 120 } |
| 122 queue.PushQueued(); | 121 queue.PushQueued(); |
| 123 | 122 |
| 124 DCHECK(optimization.is_simple_api_call()); | 123 DCHECK(optimization.is_simple_api_call()); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 // Return the generated code. | 423 // Return the generated code. |
| 425 return GetCode(kind(), name); | 424 return GetCode(kind(), name); |
| 426 } | 425 } |
| 427 | 426 |
| 428 | 427 |
| 429 #undef __ | 428 #undef __ |
| 430 } // namespace internal | 429 } // namespace internal |
| 431 } // namespace v8 | 430 } // namespace v8 |
| 432 | 431 |
| 433 #endif // V8_TARGET_ARCH_IA32 | 432 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |