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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |