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 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1965 LOperand* value = UseRegister(instr->value()); | 1965 LOperand* value = UseRegister(instr->value()); |
1966 LClampTToUint8NoSSE2* res = | 1966 LClampTToUint8NoSSE2* res = |
1967 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), | 1967 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), |
1968 TempRegister(), TempRegister()); | 1968 TempRegister(), TempRegister()); |
1969 return AssignEnvironment(DefineFixed(res, ecx)); | 1969 return AssignEnvironment(DefineFixed(res, ecx)); |
1970 } | 1970 } |
1971 } | 1971 } |
1972 } | 1972 } |
1973 | 1973 |
1974 | 1974 |
| 1975 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1976 HValue* value = instr->value(); |
| 1977 ASSERT(value->representation().IsDouble()); |
| 1978 return DefineAsRegister(new(zone()) LDoubleBits(UseFixedDouble(value, xmm2))); |
| 1979 } |
| 1980 |
| 1981 |
| 1982 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 1983 LOperand* lo = UseRegister(instr->lo()); |
| 1984 LOperand* hi = UseRegister(instr->hi()); |
| 1985 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); |
| 1986 } |
| 1987 |
| 1988 |
1975 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1989 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1976 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; | 1990 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; |
1977 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1991 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1978 return new(zone()) LReturn( | 1992 return new(zone()) LReturn( |
1979 UseFixed(instr->value(), eax), context, parameter_count); | 1993 UseFixed(instr->value(), eax), context, parameter_count); |
1980 } | 1994 } |
1981 | 1995 |
1982 | 1996 |
1983 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1997 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
1984 Representation r = instr->representation(); | 1998 Representation r = instr->representation(); |
(...skipping 605 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 |