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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 // Generate call to api function. | 163 // Generate call to api function. |
164 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 164 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
165 MacroAssembler* masm, const CallOptimization& optimization, | 165 MacroAssembler* masm, const CallOptimization& optimization, |
166 Handle<Map> receiver_map, Register receiver, Register scratch_in, | 166 Handle<Map> receiver_map, Register receiver, Register scratch_in, |
167 bool is_store, Register store_parameter, Register accessor_holder, | 167 bool is_store, Register store_parameter, Register accessor_holder, |
168 int accessor_index) { | 168 int accessor_index) { |
169 DCHECK(!accessor_holder.is(scratch_in)); | 169 DCHECK(!accessor_holder.is(scratch_in)); |
170 DCHECK(!receiver.is(scratch_in)); | 170 DCHECK(!receiver.is(scratch_in)); |
171 __ push(accessor_holder); | |
172 __ push(receiver); | 171 __ push(receiver); |
173 // Write the arguments to stack frame. | 172 // Write the arguments to stack frame. |
174 if (is_store) { | 173 if (is_store) { |
175 DCHECK(!receiver.is(store_parameter)); | 174 DCHECK(!receiver.is(store_parameter)); |
176 DCHECK(!scratch_in.is(store_parameter)); | 175 DCHECK(!scratch_in.is(store_parameter)); |
177 __ push(store_parameter); | 176 __ push(store_parameter); |
178 } | 177 } |
179 DCHECK(optimization.is_simple_api_call()); | 178 DCHECK(optimization.is_simple_api_call()); |
180 | 179 |
181 // Abi for CallApiCallbackStub. | 180 // Abi for CallApiCallbackStub. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 Register NamedStoreHandlerCompiler::value() { | 403 Register NamedStoreHandlerCompiler::value() { |
405 return StoreDescriptor::ValueRegister(); | 404 return StoreDescriptor::ValueRegister(); |
406 } | 405 } |
407 | 406 |
408 | 407 |
409 #undef __ | 408 #undef __ |
410 } // namespace internal | 409 } // namespace internal |
411 } // namespace v8 | 410 } // namespace v8 |
412 | 411 |
413 #endif // V8_TARGET_ARCH_MIPS | 412 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |