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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); | 1114 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); |
1115 } | 1115 } |
1116 | 1116 |
1117 | 1117 |
1118 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | 1118 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { |
1119 LOperand* context = UseRegisterAtStart(instr->value()); | 1119 LOperand* context = UseRegisterAtStart(instr->value()); |
1120 return DefineAsRegister(new LOuterContext(context)); | 1120 return DefineAsRegister(new LOuterContext(context)); |
1121 } | 1121 } |
1122 | 1122 |
1123 | 1123 |
| 1124 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1125 return MarkAsCall(new LDeclareGlobals, instr); |
| 1126 } |
| 1127 |
| 1128 |
1124 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | 1129 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { |
1125 return DefineAsRegister(new LGlobalObject); | 1130 return DefineAsRegister(new LGlobalObject); |
1126 } | 1131 } |
1127 | 1132 |
1128 | 1133 |
1129 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { | 1134 LInstruction* LChunkBuilder::DoGlobalReceiver(HGlobalReceiver* instr) { |
1130 LOperand* global_object = UseRegisterAtStart(instr->value()); | 1135 LOperand* global_object = UseRegisterAtStart(instr->value()); |
1131 return DefineAsRegister(new LGlobalReceiver(global_object)); | 1136 return DefineAsRegister(new LGlobalReceiver(global_object)); |
1132 } | 1137 } |
1133 | 1138 |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 LOperand* key = UseOrConstantAtStart(instr->key()); | 2266 LOperand* key = UseOrConstantAtStart(instr->key()); |
2262 LOperand* object = UseOrConstantAtStart(instr->object()); | 2267 LOperand* object = UseOrConstantAtStart(instr->object()); |
2263 LIn* result = new LIn(key, object); | 2268 LIn* result = new LIn(key, object); |
2264 return MarkAsCall(DefineFixed(result, rax), instr); | 2269 return MarkAsCall(DefineFixed(result, rax), instr); |
2265 } | 2270 } |
2266 | 2271 |
2267 | 2272 |
2268 } } // namespace v8::internal | 2273 } } // namespace v8::internal |
2269 | 2274 |
2270 #endif // V8_TARGET_ARCH_X64 | 2275 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |