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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/ic/call-optimization.h" | 9 #include "src/ic/call-optimization.h" |
10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 } | 247 } |
248 DCHECK(optimization.is_simple_api_call()); | 248 DCHECK(optimization.is_simple_api_call()); |
249 | 249 |
250 // Abi for CallApiFunctionStub. | 250 // Abi for CallApiFunctionStub. |
251 Register callee = a0; | 251 Register callee = a0; |
252 Register data = t0; | 252 Register data = t0; |
253 Register holder = a2; | 253 Register holder = a2; |
254 Register api_function_address = a1; | 254 Register api_function_address = a1; |
255 | 255 |
256 // Put callee in place. | 256 // Put callee in place. |
257 __ LoadAccessor(callee, holder, accessor_index, | 257 __ LoadAccessor(callee, accessor_holder, accessor_index, |
258 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); | 258 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); |
259 | 259 |
260 // Put holder in place. | 260 // Put holder in place. |
261 CallOptimization::HolderLookup holder_lookup; | 261 CallOptimization::HolderLookup holder_lookup; |
262 int holder_depth = 0; | 262 int holder_depth = 0; |
263 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup, | 263 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup, |
264 &holder_depth); | 264 &holder_depth); |
265 switch (holder_lookup) { | 265 switch (holder_lookup) { |
266 case CallOptimization::kHolderIsReceiver: | 266 case CallOptimization::kHolderIsReceiver: |
267 __ Move(holder, receiver); | 267 __ Move(holder, receiver); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 // Return the generated code. | 739 // Return the generated code. |
740 return GetCode(kind(), Code::NORMAL, name); | 740 return GetCode(kind(), Code::NORMAL, name); |
741 } | 741 } |
742 | 742 |
743 | 743 |
744 #undef __ | 744 #undef __ |
745 } | 745 } |
746 } // namespace v8::internal | 746 } // namespace v8::internal |
747 | 747 |
748 #endif // V8_TARGET_ARCH_MIPS | 748 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |