OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1182 | 1182 |
1183 | 1183 |
1184 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1184 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
1185 ++argument_count_; | 1185 ++argument_count_; |
1186 LOperand* argument = Use(instr->argument()); | 1186 LOperand* argument = Use(instr->argument()); |
1187 return new LPushArgument(argument); | 1187 return new LPushArgument(argument); |
1188 } | 1188 } |
1189 | 1189 |
1190 | 1190 |
1191 LInstruction* LChunkBuilder::DoContext(HContext* instr) { | 1191 LInstruction* LChunkBuilder::DoContext(HContext* instr) { |
1192 return DefineAsRegister(new LContext); | 1192 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); |
1193 } | 1193 } |
1194 | 1194 |
1195 | 1195 |
1196 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | 1196 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { |
1197 LOperand* context = UseRegisterAtStart(instr->value()); | 1197 LOperand* context = UseRegisterAtStart(instr->value()); |
1198 return DefineAsRegister(new LOuterContext(context)); | 1198 return DefineAsRegister(new LOuterContext(context)); |
1199 } | 1199 } |
1200 | 1200 |
1201 | 1201 |
1202 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { | 1202 LInstruction* LChunkBuilder::DoGlobalObject(HGlobalObject* instr) { |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2146 | 2146 |
2147 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2147 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2148 LOperand* key = UseRegisterAtStart(instr->key()); | 2148 LOperand* key = UseRegisterAtStart(instr->key()); |
2149 LOperand* object = UseRegisterAtStart(instr->object()); | 2149 LOperand* object = UseRegisterAtStart(instr->object()); |
2150 LIn* result = new LIn(key, object); | 2150 LIn* result = new LIn(key, object); |
2151 return MarkAsCall(DefineFixed(result, r0), instr); | 2151 return MarkAsCall(DefineFixed(result, r0), instr); |
2152 } | 2152 } |
2153 | 2153 |
2154 | 2154 |
2155 } } // namespace v8::internal | 2155 } } // namespace v8::internal |
OLD | NEW |