| 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 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 LOperand* value = UseRegister(instr->value()); | 2045 LOperand* value = UseRegister(instr->value()); |
| 2046 LClampTToUint8NoSSE2* res = | 2046 LClampTToUint8NoSSE2* res = |
| 2047 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), | 2047 new(zone()) LClampTToUint8NoSSE2(value, TempRegister(), |
| 2048 TempRegister(), TempRegister()); | 2048 TempRegister(), TempRegister()); |
| 2049 return AssignEnvironment(DefineFixed(res, ecx)); | 2049 return AssignEnvironment(DefineFixed(res, ecx)); |
| 2050 } | 2050 } |
| 2051 } | 2051 } |
| 2052 } | 2052 } |
| 2053 | 2053 |
| 2054 | 2054 |
| 2055 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 2056 HValue* value = instr->value(); |
| 2057 ASSERT(value->representation().IsDouble()); |
| 2058 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 2059 } |
| 2060 |
| 2061 |
| 2062 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 2063 LOperand* lo = UseRegister(instr->lo()); |
| 2064 LOperand* hi = UseRegister(instr->hi()); |
| 2065 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); |
| 2066 } |
| 2067 |
| 2068 |
| 2055 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 2069 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 2056 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; | 2070 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), esi) : NULL; |
| 2057 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 2071 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 2058 return new(zone()) LReturn( | 2072 return new(zone()) LReturn( |
| 2059 UseFixed(instr->value(), eax), context, parameter_count); | 2073 UseFixed(instr->value(), eax), context, parameter_count); |
| 2060 } | 2074 } |
| 2061 | 2075 |
| 2062 | 2076 |
| 2063 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 2077 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
| 2064 Representation r = instr->representation(); | 2078 Representation r = instr->representation(); |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2668 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2682 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2669 LOperand* object = UseRegister(instr->object()); | 2683 LOperand* object = UseRegister(instr->object()); |
| 2670 LOperand* index = UseTempRegister(instr->index()); | 2684 LOperand* index = UseTempRegister(instr->index()); |
| 2671 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2685 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2672 } | 2686 } |
| 2673 | 2687 |
| 2674 | 2688 |
| 2675 } } // namespace v8::internal | 2689 } } // namespace v8::internal |
| 2676 | 2690 |
| 2677 #endif // V8_TARGET_ARCH_IA32 | 2691 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |