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

Side by Side Diff: src/crankshaft/mips/lithium-mips.cc

Issue 2398683004: [crankshaft] Remove HLoadNamedGeneric and use HCallWithDescriptor to call LoadIC. (Closed)
Patch Set: Created 4 years, 2 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/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-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/crankshaft/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 return result; 1974 return result;
1975 } 1975 }
1976 1976
1977 1977
1978 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1978 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1979 LOperand* obj = UseRegisterAtStart(instr->object()); 1979 LOperand* obj = UseRegisterAtStart(instr->object());
1980 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 1980 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
1981 } 1981 }
1982 1982
1983 1983
1984 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1985 LOperand* context = UseFixed(instr->context(), cp);
1986 LOperand* object =
1987 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
1988 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1989
1990 LInstruction* result =
1991 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), v0);
1992 return MarkAsCall(result, instr);
1993 }
1994
1995
1996 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1984 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1997 HLoadFunctionPrototype* instr) { 1985 HLoadFunctionPrototype* instr) {
1998 return AssignEnvironment(DefineAsRegister( 1986 return AssignEnvironment(DefineAsRegister(
1999 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 1987 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2000 } 1988 }
2001 1989
2002 1990
2003 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { 1991 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
2004 return DefineAsRegister(new(zone()) LLoadRoot); 1992 return DefineAsRegister(new(zone()) LLoadRoot);
2005 } 1993 }
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 LOperand* index = UseTempRegister(instr->index()); 2381 LOperand* index = UseTempRegister(instr->index());
2394 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2382 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2395 LInstruction* result = DefineSameAsFirst(load); 2383 LInstruction* result = DefineSameAsFirst(load);
2396 return AssignPointerMap(result); 2384 return AssignPointerMap(result);
2397 } 2385 }
2398 2386
2399 } // namespace internal 2387 } // namespace internal
2400 } // namespace v8 2388 } // namespace v8
2401 2389
2402 #endif // V8_TARGET_ARCH_MIPS 2390 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698