| 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 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2122   Representation r = instr->representation(); | 2122   Representation r = instr->representation(); | 
| 2123   if (r.IsSmi()) { | 2123   if (r.IsSmi()) { | 
| 2124     return DefineAsRegister(new(zone()) LConstantS); | 2124     return DefineAsRegister(new(zone()) LConstantS); | 
| 2125   } else if (r.IsInteger32()) { | 2125   } else if (r.IsInteger32()) { | 
| 2126     return DefineAsRegister(new(zone()) LConstantI); | 2126     return DefineAsRegister(new(zone()) LConstantI); | 
| 2127   } else if (r.IsDouble()) { | 2127   } else if (r.IsDouble()) { | 
| 2128     double value = instr->DoubleValue(); | 2128     double value = instr->DoubleValue(); | 
| 2129     bool value_is_zero = BitCast<uint64_t, double>(value) == 0; | 2129     bool value_is_zero = BitCast<uint64_t, double>(value) == 0; | 
| 2130     LOperand* temp = value_is_zero ? NULL : TempRegister(); | 2130     LOperand* temp = value_is_zero ? NULL : TempRegister(); | 
| 2131     return DefineAsRegister(new(zone()) LConstantD(temp)); | 2131     return DefineAsRegister(new(zone()) LConstantD(temp)); | 
|  | 2132   } else if (r.IsExternal()) { | 
|  | 2133     return DefineAsRegister(new(zone()) LConstantE); | 
| 2132   } else if (r.IsTagged()) { | 2134   } else if (r.IsTagged()) { | 
| 2133     return DefineAsRegister(new(zone()) LConstantT); | 2135     return DefineAsRegister(new(zone()) LConstantT); | 
| 2134   } else { | 2136   } else { | 
| 2135     UNREACHABLE(); | 2137     UNREACHABLE(); | 
| 2136     return NULL; | 2138     return NULL; | 
| 2137   } | 2139   } | 
| 2138 } | 2140 } | 
| 2139 | 2141 | 
| 2140 | 2142 | 
| 2141 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 2143 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2759 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2761 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
| 2760   LOperand* object = UseRegister(instr->object()); | 2762   LOperand* object = UseRegister(instr->object()); | 
| 2761   LOperand* index = UseTempRegister(instr->index()); | 2763   LOperand* index = UseTempRegister(instr->index()); | 
| 2762   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2764   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
| 2763 } | 2765 } | 
| 2764 | 2766 | 
| 2765 | 2767 | 
| 2766 } }  // namespace v8::internal | 2768 } }  // namespace v8::internal | 
| 2767 | 2769 | 
| 2768 #endif  // V8_TARGET_ARCH_IA32 | 2770 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|