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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 } | 1196 } |
1197 | 1197 |
1198 | 1198 |
1199 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1199 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
1200 ++argument_count_; | 1200 ++argument_count_; |
1201 LOperand* argument = UseAny(instr->argument()); | 1201 LOperand* argument = UseAny(instr->argument()); |
1202 return new LPushArgument(argument); | 1202 return new LPushArgument(argument); |
1203 } | 1203 } |
1204 | 1204 |
1205 | 1205 |
| 1206 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { |
| 1207 return instr->HasNoUses() ? NULL : DefineAsRegister(new LThisFunction); |
| 1208 } |
| 1209 |
| 1210 |
1206 LInstruction* LChunkBuilder::DoContext(HContext* instr) { | 1211 LInstruction* LChunkBuilder::DoContext(HContext* instr) { |
1207 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); | 1212 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); |
1208 } | 1213 } |
1209 | 1214 |
1210 | 1215 |
1211 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | 1216 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { |
1212 LOperand* context = UseRegisterAtStart(instr->value()); | 1217 LOperand* context = UseRegisterAtStart(instr->value()); |
1213 return DefineAsRegister(new LOuterContext(context)); | 1218 return DefineAsRegister(new LOuterContext(context)); |
1214 } | 1219 } |
1215 | 1220 |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 LOperand* key = UseOrConstantAtStart(instr->key()); | 2291 LOperand* key = UseOrConstantAtStart(instr->key()); |
2287 LOperand* object = UseOrConstantAtStart(instr->object()); | 2292 LOperand* object = UseOrConstantAtStart(instr->object()); |
2288 LIn* result = new LIn(key, object); | 2293 LIn* result = new LIn(key, object); |
2289 return MarkAsCall(DefineFixed(result, eax), instr); | 2294 return MarkAsCall(DefineFixed(result, eax), instr); |
2290 } | 2295 } |
2291 | 2296 |
2292 | 2297 |
2293 } } // namespace v8::internal | 2298 } } // namespace v8::internal |
2294 | 2299 |
2295 #endif // V8_TARGET_ARCH_IA32 | 2300 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |