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