OLD | NEW |
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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 return result; | 1977 return result; |
1978 } | 1978 } |
1979 | 1979 |
1980 | 1980 |
1981 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 1981 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
1982 LOperand* obj = UseRegisterAtStart(instr->object()); | 1982 LOperand* obj = UseRegisterAtStart(instr->object()); |
1983 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); | 1983 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); |
1984 } | 1984 } |
1985 | 1985 |
1986 | 1986 |
1987 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | |
1988 LOperand* context = UseFixed(instr->context(), cp); | |
1989 LOperand* object = | |
1990 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | |
1991 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
1992 | |
1993 LInstruction* result = | |
1994 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), v0); | |
1995 return MarkAsCall(result, instr); | |
1996 } | |
1997 | |
1998 | |
1999 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 1987 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2000 HLoadFunctionPrototype* instr) { | 1988 HLoadFunctionPrototype* instr) { |
2001 return AssignEnvironment(DefineAsRegister( | 1989 return AssignEnvironment(DefineAsRegister( |
2002 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 1990 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
2003 } | 1991 } |
2004 | 1992 |
2005 | 1993 |
2006 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 1994 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
2007 return DefineAsRegister(new(zone()) LLoadRoot); | 1995 return DefineAsRegister(new(zone()) LLoadRoot); |
2008 } | 1996 } |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2398 LOperand* index = UseTempRegister(instr->index()); | 2386 LOperand* index = UseTempRegister(instr->index()); |
2399 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2387 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2400 LInstruction* result = DefineSameAsFirst(load); | 2388 LInstruction* result = DefineSameAsFirst(load); |
2401 return AssignPointerMap(result); | 2389 return AssignPointerMap(result); |
2402 } | 2390 } |
2403 | 2391 |
2404 } // namespace internal | 2392 } // namespace internal |
2405 } // namespace v8 | 2393 } // namespace v8 |
2406 | 2394 |
2407 #endif // V8_TARGET_ARCH_MIPS64 | 2395 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |