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_ARM | 5 #if V8_TARGET_ARCH_ARM |
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/assembler-inl.h" | 10 #include "src/assembler-inl.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 171 } |
172 | 172 |
173 // Generate call to api function. | 173 // Generate call to api function. |
174 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 174 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
175 MacroAssembler* masm, const CallOptimization& optimization, | 175 MacroAssembler* masm, const CallOptimization& optimization, |
176 Handle<Map> receiver_map, Register receiver, Register scratch_in, | 176 Handle<Map> receiver_map, Register receiver, Register scratch_in, |
177 bool is_store, Register store_parameter, Register accessor_holder, | 177 bool is_store, Register store_parameter, Register accessor_holder, |
178 int accessor_index) { | 178 int accessor_index) { |
179 DCHECK(!accessor_holder.is(scratch_in)); | 179 DCHECK(!accessor_holder.is(scratch_in)); |
180 DCHECK(!receiver.is(scratch_in)); | 180 DCHECK(!receiver.is(scratch_in)); |
| 181 __ push(accessor_holder); |
181 __ push(receiver); | 182 __ push(receiver); |
182 // Write the arguments to stack frame. | 183 // Write the arguments to stack frame. |
183 if (is_store) { | 184 if (is_store) { |
184 DCHECK(!receiver.is(store_parameter)); | 185 DCHECK(!receiver.is(store_parameter)); |
185 DCHECK(!scratch_in.is(store_parameter)); | 186 DCHECK(!scratch_in.is(store_parameter)); |
186 __ push(store_parameter); | 187 __ push(store_parameter); |
187 } | 188 } |
188 DCHECK(optimization.is_simple_api_call()); | 189 DCHECK(optimization.is_simple_api_call()); |
189 | 190 |
190 // Abi for CallApiCallbackStub. | 191 // Abi for CallApiCallbackStub. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 Register NamedStoreHandlerCompiler::value() { | 421 Register NamedStoreHandlerCompiler::value() { |
421 return StoreDescriptor::ValueRegister(); | 422 return StoreDescriptor::ValueRegister(); |
422 } | 423 } |
423 | 424 |
424 | 425 |
425 #undef __ | 426 #undef __ |
426 } // namespace internal | 427 } // namespace internal |
427 } // namespace v8 | 428 } // namespace v8 |
428 | 429 |
429 #endif // V8_TARGET_ARCH_ARM | 430 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |