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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1973 DCHECK(input_rep.IsSmiOrTagged()); | 1973 DCHECK(input_rep.IsSmiOrTagged()); |
1974 // Register allocator doesn't (yet) support allocation of double | 1974 // Register allocator doesn't (yet) support allocation of double |
1975 // temps. Reserve d1 explicitly. | 1975 // temps. Reserve d1 explicitly. |
1976 LClampTToUint8* result = | 1976 LClampTToUint8* result = |
1977 new(zone()) LClampTToUint8(reg, TempDoubleRegister()); | 1977 new(zone()) LClampTToUint8(reg, TempDoubleRegister()); |
1978 return AssignEnvironment(DefineAsRegister(result)); | 1978 return AssignEnvironment(DefineAsRegister(result)); |
1979 } | 1979 } |
1980 } | 1980 } |
1981 | 1981 |
1982 | 1982 |
1983 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | |
1984 HValue* value = instr->value(); | |
1985 DCHECK(value->representation().IsDouble()); | |
1986 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); | |
1987 } | |
1988 | |
1989 | |
1990 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1983 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1991 LOperand* context = info()->IsStub() | 1984 LOperand* context = info()->IsStub() |
1992 ? UseFixed(instr->context(), cp) | 1985 ? UseFixed(instr->context(), cp) |
1993 : NULL; | 1986 : NULL; |
1994 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1987 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1995 return new(zone()) LReturn(UseFixed(instr->value(), r0), context, | 1988 return new(zone()) LReturn(UseFixed(instr->value(), r0), context, |
1996 parameter_count); | 1989 parameter_count); |
1997 } | 1990 } |
1998 | 1991 |
1999 | 1992 |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2497 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2505 LOperand* object = UseRegister(instr->object()); | 2498 LOperand* object = UseRegister(instr->object()); |
2506 LOperand* index = UseTempRegister(instr->index()); | 2499 LOperand* index = UseTempRegister(instr->index()); |
2507 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2500 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2508 LInstruction* result = DefineSameAsFirst(load); | 2501 LInstruction* result = DefineSameAsFirst(load); |
2509 return AssignPointerMap(result); | 2502 return AssignPointerMap(result); |
2510 } | 2503 } |
2511 | 2504 |
2512 } // namespace internal | 2505 } // namespace internal |
2513 } // namespace v8 | 2506 } // namespace v8 |
OLD | NEW |