Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: src/ic/mips64/handler-compiler-mips64.cc

Issue 878023003: MIPS: Fix 'Load API accessor from descriptor instead of embedding it in handler.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 } 248 }
249 DCHECK(optimization.is_simple_api_call()); 249 DCHECK(optimization.is_simple_api_call());
250 250
251 // Abi for CallApiFunctionStub. 251 // Abi for CallApiFunctionStub.
252 Register callee = a0; 252 Register callee = a0;
253 Register data = a4; 253 Register data = a4;
254 Register holder = a2; 254 Register holder = a2;
255 Register api_function_address = a1; 255 Register api_function_address = a1;
256 256
257 // Put callee in place. 257 // Put callee in place.
258 __ LoadAccessor(callee, holder, accessor_index, 258 __ LoadAccessor(callee, accessor_holder, accessor_index,
259 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); 259 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER);
260 260
261 // Put holder in place. 261 // Put holder in place.
262 CallOptimization::HolderLookup holder_lookup; 262 CallOptimization::HolderLookup holder_lookup;
263 int holder_depth = 0; 263 int holder_depth = 0;
264 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup, 264 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup,
265 &holder_depth); 265 &holder_depth);
266 switch (holder_lookup) { 266 switch (holder_lookup) {
267 case CallOptimization::kHolderIsReceiver: 267 case CallOptimization::kHolderIsReceiver:
268 __ Move(holder, receiver); 268 __ Move(holder, receiver);
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 // Return the generated code. 740 // Return the generated code.
741 return GetCode(kind(), Code::NORMAL, name); 741 return GetCode(kind(), Code::NORMAL, name);
742 } 742 }
743 743
744 744
745 #undef __ 745 #undef __
746 } 746 }
747 } // namespace v8::internal 747 } // namespace v8::internal
748 748
749 #endif // V8_TARGET_ARCH_MIPS64 749 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698