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

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

Issue 414303003: MIPS: Restructure the IC / Handler compilers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/stub-cache-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 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg)); 1932 __ DropAndRet(HasArgsInRegisters() ? 0 : 2, eq, a0, Operand(zero_reg));
1933 __ LoadRoot(v0, Heap::kFalseValueRootIndex); 1933 __ LoadRoot(v0, Heap::kFalseValueRootIndex);
1934 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); 1934 __ DropAndRet(HasArgsInRegisters() ? 0 : 2);
1935 } 1935 }
1936 } 1936 }
1937 1937
1938 1938
1939 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { 1939 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
1940 Label miss; 1940 Label miss;
1941 Register receiver = LoadIC::ReceiverRegister(); 1941 Register receiver = LoadIC::ReceiverRegister();
1942 Register name = LoadIC::NameRegister(); 1942 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3,
1943 1943 t0, &miss);
1944 ASSERT(kind() == Code::LOAD_IC ||
1945 kind() == Code::KEYED_LOAD_IC);
1946
1947 if (kind() == Code::KEYED_LOAD_IC) {
1948 __ Branch(&miss, ne, name,
1949 Operand(isolate()->factory()->prototype_string()));
1950 }
1951
1952 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss);
1953 __ bind(&miss); 1944 __ bind(&miss);
1954 StubCompiler::TailCallBuiltin( 1945 PropertyAccessCompiler::TailCallBuiltin(
1955 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 1946 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC));
1956 } 1947 }
1957 1948
1958 1949
1959 Register InstanceofStub::left() { return a0; } 1950 Register InstanceofStub::left() { return a0; }
1960 1951
1961 1952
1962 Register InstanceofStub::right() { return a1; } 1953 Register InstanceofStub::right() { return a1; }
1963 1954
1964 1955
1965 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 1956 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
(...skipping 3304 matching lines...) Expand 10 before | Expand all | Expand 10 after
5270 MemOperand(fp, 6 * kPointerSize), 5261 MemOperand(fp, 6 * kPointerSize),
5271 NULL); 5262 NULL);
5272 } 5263 }
5273 5264
5274 5265
5275 #undef __ 5266 #undef __
5276 5267
5277 } } // namespace v8::internal 5268 } } // namespace v8::internal
5278 5269
5279 #endif // V8_TARGET_ARCH_MIPS 5270 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698