OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 LOperand* value = UseRegister(instr->value()); | 1967 LOperand* value = UseRegister(instr->value()); |
1968 LClampTToUint8NoSSE2* res = | 1968 LClampTToUint8NoSSE2* res = |
1969 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), | 1969 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), |
1970 TempRegister(), TempRegister()); | 1970 TempRegister(), TempRegister()); |
1971 return AssignEnvironment(DefineFixed(res, ecx)); | 1971 return AssignEnvironment(DefineFixed(res, ecx)); |
1972 } | 1972 } |
1973 } | 1973 } |
1974 } | 1974 } |
1975 | 1975 |
1976 | 1976 |
| 1977 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1978 HValue* value = instr->value(); |
| 1979 ASSERT(value->representation().IsDouble()); |
| 1980 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 1981 } |
| 1982 |
| 1983 |
| 1984 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 1985 LOperand* lo = UseRegister(instr->lo()); |
| 1986 LOperand* hi = UseRegister(instr->hi()); |
| 1987 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); |
| 1988 } |
| 1989 |
| 1990 |
1977 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1991 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1978 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; | 1992 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; |
1979 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1993 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1980 return new(zone()) LReturn( | 1994 return new(zone()) LReturn( |
1981 UseFixed(instr->value(), eax), context, parameter_count); | 1995 UseFixed(instr->value(), eax), context, parameter_count); |
1982 } | 1996 } |
1983 | 1997 |
1984 | 1998 |
1985 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1999 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
1986 Representation r = instr->representation(); | 2000 Representation r = instr->representation(); |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2604 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2591 LOperand* object = UseRegister(instr->object()); | 2605 LOperand* object = UseRegister(instr->object()); |
2592 LOperand* index = UseTempRegister(instr->index()); | 2606 LOperand* index = UseTempRegister(instr->index()); |
2593 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2607 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2594 } | 2608 } |
2595 | 2609 |
2596 | 2610 |
2597 } } // namespace v8::internal | 2611 } } // namespace v8::internal |
2598 | 2612 |
2599 #endif // V8_TARGET_ARCH_IA32 | 2613 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |