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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 if (instr->HasNoUses()) return NULL; | 1038 if (instr->HasNoUses()) return NULL; |
1039 | 1039 |
1040 if (info()->IsStub()) { | 1040 if (info()->IsStub()) { |
1041 return DefineFixed(new(zone()) LContext, cp); | 1041 return DefineFixed(new(zone()) LContext, cp); |
1042 } | 1042 } |
1043 | 1043 |
1044 return DefineAsRegister(new(zone()) LContext); | 1044 return DefineAsRegister(new(zone()) LContext); |
1045 } | 1045 } |
1046 | 1046 |
1047 | 1047 |
1048 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | |
1049 LOperand* context = UseRegisterAtStart(instr->value()); | |
1050 return DefineAsRegister(new(zone()) LOuterContext(context)); | |
1051 } | |
1052 | |
1053 | |
1054 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1048 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
1055 LOperand* context = UseFixed(instr->context(), cp); | 1049 LOperand* context = UseFixed(instr->context(), cp); |
1056 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1050 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
1057 } | 1051 } |
1058 | 1052 |
1059 | 1053 |
1060 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | 1054 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { |
1061 LOperand* context = UseRegisterAtStart(instr->value()); | 1055 LOperand* context = UseRegisterAtStart(instr->value()); |
1062 return DefineAsRegister(new(zone()) LGlobalObject(context)); | 1056 return DefineAsRegister(new(zone()) LGlobalObject(context)); |
1063 } | 1057 } |
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 | 2435 |
2442 | 2436 |
2443 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2437 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2444 LOperand* object = UseRegister(instr->object()); | 2438 LOperand* object = UseRegister(instr->object()); |
2445 LOperand* index = UseRegister(instr->index()); | 2439 LOperand* index = UseRegister(instr->index()); |
2446 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2440 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2447 } | 2441 } |
2448 | 2442 |
2449 | 2443 |
2450 } } // namespace v8::internal | 2444 } } // namespace v8::internal |
OLD | NEW |