| 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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2078 | 2078 |
| 2079 | 2079 |
| 2080 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 2080 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
| 2081 Representation r = instr->representation(); | 2081 Representation r = instr->representation(); |
| 2082 if (r.IsSmi()) { | 2082 if (r.IsSmi()) { |
| 2083 return DefineAsRegister(new(zone()) LConstantS); | 2083 return DefineAsRegister(new(zone()) LConstantS); |
| 2084 } else if (r.IsInteger32()) { | 2084 } else if (r.IsInteger32()) { |
| 2085 return DefineAsRegister(new(zone()) LConstantI); | 2085 return DefineAsRegister(new(zone()) LConstantI); |
| 2086 } else if (r.IsDouble()) { | 2086 } else if (r.IsDouble()) { |
| 2087 return DefineAsRegister(new(zone()) LConstantD); | 2087 return DefineAsRegister(new(zone()) LConstantD); |
| 2088 } else if (r.IsExternal()) { |
| 2089 return DefineAsRegister(new(zone()) LConstantE); |
| 2088 } else if (r.IsTagged()) { | 2090 } else if (r.IsTagged()) { |
| 2089 return DefineAsRegister(new(zone()) LConstantT); | 2091 return DefineAsRegister(new(zone()) LConstantT); |
| 2090 } else { | 2092 } else { |
| 2091 UNREACHABLE(); | 2093 UNREACHABLE(); |
| 2092 return NULL; | 2094 return NULL; |
| 2093 } | 2095 } |
| 2094 } | 2096 } |
| 2095 | 2097 |
| 2096 | 2098 |
| 2097 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 2099 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2636 | 2638 |
| 2637 | 2639 |
| 2638 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2640 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2639 LOperand* object = UseRegister(instr->object()); | 2641 LOperand* object = UseRegister(instr->object()); |
| 2640 LOperand* index = UseRegister(instr->index()); | 2642 LOperand* index = UseRegister(instr->index()); |
| 2641 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2643 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2642 } | 2644 } |
| 2643 | 2645 |
| 2644 | 2646 |
| 2645 } } // namespace v8::internal | 2647 } } // namespace v8::internal |
| OLD | NEW |