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

Side by Side Diff: src/mips64/stub-cache-mips64.cc

Issue 415623002: MIPS: Always use the LoadStubCompiler for Load handlers, also for keyedload handlers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/stub-cache-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 HandlerFrontendFooter(name, &miss); 989 HandlerFrontendFooter(name, &miss);
990 return reg; 990 return reg;
991 } 991 }
992 992
993 993
994 void LoadStubCompiler::GenerateLoadField(Register reg, 994 void LoadStubCompiler::GenerateLoadField(Register reg,
995 Handle<JSObject> holder, 995 Handle<JSObject> holder,
996 FieldIndex field, 996 FieldIndex field,
997 Representation representation) { 997 Representation representation) {
998 if (!reg.is(receiver())) __ mov(receiver(), reg); 998 if (!reg.is(receiver())) __ mov(receiver(), reg);
999 if (kind() == Code::LOAD_IC) { 999 LoadFieldStub stub(isolate(), field);
1000 LoadFieldStub stub(isolate(), field); 1000 GenerateTailCall(masm(), stub.GetCode());
1001 GenerateTailCall(masm(), stub.GetCode());
1002 } else {
1003 KeyedLoadFieldStub stub(isolate(), field);
1004 GenerateTailCall(masm(), stub.GetCode());
1005 }
1006 } 1001 }
1007 1002
1008 1003
1009 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { 1004 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) {
1010 // Return the constant value. 1005 // Return the constant value.
1011 __ li(v0, value); 1006 __ li(v0, value);
1012 __ Ret(); 1007 __ Ret();
1013 } 1008 }
1014 1009
1015 1010
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 1498
1504 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1505 } 1500 }
1506 1501
1507 1502
1508 #undef __ 1503 #undef __
1509 1504
1510 } } // namespace v8::internal 1505 } } // namespace v8::internal
1511 1506
1512 #endif // V8_TARGET_ARCH_MIPS64 1507 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698