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