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

Side by Side Diff: src/mips/stub-cache-mips.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 | « no previous file | src/mips64/stub-cache-mips64.cc » ('j') | 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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 HandlerFrontendFooter(name, &miss); 988 HandlerFrontendFooter(name, &miss);
989 return reg; 989 return reg;
990 } 990 }
991 991
992 992
993 void LoadStubCompiler::GenerateLoadField(Register reg, 993 void LoadStubCompiler::GenerateLoadField(Register reg,
994 Handle<JSObject> holder, 994 Handle<JSObject> holder,
995 FieldIndex field, 995 FieldIndex field,
996 Representation representation) { 996 Representation representation) {
997 if (!reg.is(receiver())) __ mov(receiver(), reg); 997 if (!reg.is(receiver())) __ mov(receiver(), reg);
998 if (kind() == Code::LOAD_IC) { 998 LoadFieldStub stub(isolate(), field);
999 LoadFieldStub stub(isolate(), field); 999 GenerateTailCall(masm(), stub.GetCode());
1000 GenerateTailCall(masm(), stub.GetCode());
1001 } else {
1002 KeyedLoadFieldStub stub(isolate(), field);
1003 GenerateTailCall(masm(), stub.GetCode());
1004 }
1005 } 1000 }
1006 1001
1007 1002
1008 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { 1003 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) {
1009 // Return the constant value. 1004 // Return the constant value.
1010 __ li(v0, value); 1005 __ li(v0, value);
1011 __ Ret(); 1006 __ Ret();
1012 } 1007 }
1013 1008
1014 1009
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 1496
1502 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1497 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1503 } 1498 }
1504 1499
1505 1500
1506 #undef __ 1501 #undef __
1507 1502
1508 } } // namespace v8::internal 1503 } } // namespace v8::internal
1509 1504
1510 #endif // V8_TARGET_ARCH_MIPS 1505 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/stub-cache-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698