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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
10 | 10 |
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 } | 1985 } |
1986 | 1986 |
1987 | 1987 |
1988 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | 1988 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
1989 HValue* value = instr->value(); | 1989 HValue* value = instr->value(); |
1990 DCHECK(value->representation().IsDouble()); | 1990 DCHECK(value->representation().IsDouble()); |
1991 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); | 1991 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
1992 } | 1992 } |
1993 | 1993 |
1994 | 1994 |
1995 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { | |
1996 LOperand* lo = UseRegister(instr->lo()); | |
1997 LOperand* hi = UseRegister(instr->hi()); | |
1998 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); | |
1999 } | |
2000 | |
2001 | |
2002 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1995 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
2003 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; | 1996 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; |
2004 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1997 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
2005 return new(zone()) LReturn( | 1998 return new(zone()) LReturn( |
2006 UseFixed(instr->value(), eax), context, parameter_count); | 1999 UseFixed(instr->value(), eax), context, parameter_count); |
2007 } | 2000 } |
2008 | 2001 |
2009 | 2002 |
2010 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 2003 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
2011 Representation r = instr->representation(); | 2004 Representation r = instr->representation(); |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 LOperand* index = UseTempRegister(instr->index()); | 2572 LOperand* index = UseTempRegister(instr->index()); |
2580 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2573 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2581 LInstruction* result = DefineSameAsFirst(load); | 2574 LInstruction* result = DefineSameAsFirst(load); |
2582 return AssignPointerMap(result); | 2575 return AssignPointerMap(result); |
2583 } | 2576 } |
2584 | 2577 |
2585 } // namespace internal | 2578 } // namespace internal |
2586 } // namespace v8 | 2579 } // namespace v8 |
2587 | 2580 |
2588 #endif // V8_TARGET_ARCH_X87 | 2581 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |