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); |
114 queue.Queue(receiver); | 115 queue.Queue(receiver); |
115 // Write the arguments to the stack frame. | 116 // Write the arguments to the stack frame. |
116 if (is_store) { | 117 if (is_store) { |
117 DCHECK(!receiver.is(store_parameter)); | 118 DCHECK(!receiver.is(store_parameter)); |
118 DCHECK(!scratch.is(store_parameter)); | 119 DCHECK(!scratch.is(store_parameter)); |
119 queue.Queue(store_parameter); | 120 queue.Queue(store_parameter); |
120 } | 121 } |
121 queue.PushQueued(); | 122 queue.PushQueued(); |
122 | 123 |
123 DCHECK(optimization.is_simple_api_call()); | 124 DCHECK(optimization.is_simple_api_call()); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // Return the generated code. | 424 // Return the generated code. |
424 return GetCode(kind(), name); | 425 return GetCode(kind(), name); |
425 } | 426 } |
426 | 427 |
427 | 428 |
428 #undef __ | 429 #undef __ |
429 } // namespace internal | 430 } // namespace internal |
430 } // namespace v8 | 431 } // namespace v8 |
431 | 432 |
432 #endif // V8_TARGET_ARCH_IA32 | 433 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |