| 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 if (instr->HasNoUses()) return NULL; | 1120 if (instr->HasNoUses()) return NULL; |
| 1121 | 1121 |
| 1122 if (info()->IsStub()) { | 1122 if (info()->IsStub()) { |
| 1123 return DefineFixed(new(zone()) LContext, esi); | 1123 return DefineFixed(new(zone()) LContext, esi); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 return DefineAsRegister(new(zone()) LContext); | 1126 return DefineAsRegister(new(zone()) LContext); |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 | 1129 |
| 1130 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | |
| 1131 LOperand* context = UseRegisterAtStart(instr->value()); | |
| 1132 return DefineAsRegister(new(zone()) LOuterContext(context)); | |
| 1133 } | |
| 1134 | |
| 1135 | |
| 1136 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1130 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1137 LOperand* context = UseFixed(instr->context(), esi); | 1131 LOperand* context = UseFixed(instr->context(), esi); |
| 1138 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1132 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
| 1139 } | 1133 } |
| 1140 | 1134 |
| 1141 | 1135 |
| 1142 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | 1136 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { |
| 1143 LOperand* context = UseRegisterAtStart(instr->value()); | 1137 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1144 return DefineAsRegister(new(zone()) LGlobalObject(context)); | 1138 return DefineAsRegister(new(zone()) LGlobalObject(context)); |
| 1145 } | 1139 } |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2624 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2618 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2625 LOperand* object = UseRegister(instr->object()); | 2619 LOperand* object = UseRegister(instr->object()); |
| 2626 LOperand* index = UseTempRegister(instr->index()); | 2620 LOperand* index = UseTempRegister(instr->index()); |
| 2627 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2621 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2628 } | 2622 } |
| 2629 | 2623 |
| 2630 | 2624 |
| 2631 } } // namespace v8::internal | 2625 } } // namespace v8::internal |
| 2632 | 2626 |
| 2633 #endif // V8_TARGET_ARCH_IA32 | 2627 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |