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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 367053002: MIPS: KeyedLoadIC should have same register spec as LoadIC. (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/mips/debug-mips.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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 __ LoadRoot(v0, Heap::kTrueValueRootIndex); 1964 __ LoadRoot(v0, Heap::kTrueValueRootIndex);
1965 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg)); 1965 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg));
1966 __ LoadRoot(v0, Heap::kFalseValueRootIndex); 1966 __ LoadRoot(v0, Heap::kFalseValueRootIndex);
1967 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); 1967 __ DropAndRet(HasArgsInRegisters() ? 0 : 2);
1968 } 1968 }
1969 } 1969 }
1970 1970
1971 1971
1972 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { 1972 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
1973 Label miss; 1973 Label miss;
1974 Register receiver; 1974 Register receiver = LoadIC::ReceiverRegister();
1975 Register name = LoadIC::NameRegister();
1976
1977 ASSERT(kind() == Code::LOAD_IC ||
1978 kind() == Code::KEYED_LOAD_IC);
1979
1975 if (kind() == Code::KEYED_LOAD_IC) { 1980 if (kind() == Code::KEYED_LOAD_IC) {
1976 // ----------- S t a t e ------------- 1981 __ Branch(&miss, ne, name,
1977 // -- ra : return address
1978 // -- a0 : key
1979 // -- a1 : receiver
1980 // -----------------------------------
1981 __ Branch(&miss, ne, a0,
1982 Operand(isolate()->factory()->prototype_string())); 1982 Operand(isolate()->factory()->prototype_string()));
1983 receiver = a1;
1984 } else {
1985 ASSERT(kind() == Code::LOAD_IC);
1986 // ----------- S t a t e -------------
1987 // -- a2 : name
1988 // -- ra : return address
1989 // -- a0 : receiver
1990 // -- sp[0] : receiver
1991 // -----------------------------------
1992 receiver = a0;
1993 } 1983 }
1994 1984
1995 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss); 1985 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss);
1996 __ bind(&miss); 1986 __ bind(&miss);
1997 StubCompiler::TailCallBuiltin( 1987 StubCompiler::TailCallBuiltin(
1998 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 1988 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
1999 } 1989 }
2000 1990
2001 1991
2002 Register InstanceofStub::left() { return a0; } 1992 Register InstanceofStub::left() { return a0; }
(...skipping 3306 matching lines...) Expand 10 before | Expand all | Expand 10 after
5309 MemOperand(fp, 6 * kPointerSize), 5299 MemOperand(fp, 6 * kPointerSize),
5310 NULL); 5300 NULL);
5311 } 5301 }
5312 5302
5313 5303
5314 #undef __ 5304 #undef __
5315 5305
5316 } } // namespace v8::internal 5306 } } // namespace v8::internal
5317 5307
5318 #endif // V8_TARGET_ARCH_MIPS 5308 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698