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); | |
177 __ push(receiver); | 176 __ push(receiver); |
178 // Write the arguments to stack frame. | 177 // Write the arguments to stack frame. |
179 if (is_store) { | 178 if (is_store) { |
180 DCHECK(!receiver.is(store_parameter)); | 179 DCHECK(!receiver.is(store_parameter)); |
181 DCHECK(!scratch_in.is(store_parameter)); | 180 DCHECK(!scratch_in.is(store_parameter)); |
182 __ push(store_parameter); | 181 __ push(store_parameter); |
183 } | 182 } |
184 DCHECK(optimization.is_simple_api_call()); | 183 DCHECK(optimization.is_simple_api_call()); |
185 | 184 |
186 // Abi for CallApiCallbackStub. | 185 // Abi for CallApiCallbackStub. |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 Register NamedStoreHandlerCompiler::value() { | 419 Register NamedStoreHandlerCompiler::value() { |
421 return StoreDescriptor::ValueRegister(); | 420 return StoreDescriptor::ValueRegister(); |
422 } | 421 } |
423 | 422 |
424 | 423 |
425 #undef __ | 424 #undef __ |
426 } // namespace internal | 425 } // namespace internal |
427 } // namespace v8 | 426 } // namespace v8 |
428 | 427 |
429 #endif // V8_TARGET_ARCH_ARM | 428 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |