| 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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 | 1186 |
| 1187 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1187 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
| 1188 ++argument_count_; | 1188 ++argument_count_; |
| 1189 LOperand* argument = UseOrConstant(instr->argument()); | 1189 LOperand* argument = UseOrConstant(instr->argument()); |
| 1190 return new LPushArgument(argument); | 1190 return new LPushArgument(argument); |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 | 1193 |
| 1194 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { |
| 1195 return instr->HasNoUses() ? NULL : DefineAsRegister(new LThisFunction); |
| 1196 } |
| 1197 |
| 1198 |
| 1194 LInstruction* LChunkBuilder::DoContext(HContext* instr) { | 1199 LInstruction* LChunkBuilder::DoContext(HContext* instr) { |
| 1195 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); | 1200 return instr->HasNoUses() ? NULL : DefineAsRegister(new LContext); |
| 1196 } | 1201 } |
| 1197 | 1202 |
| 1198 | 1203 |
| 1199 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { | 1204 LInstruction* LChunkBuilder::DoOuterContext(HOuterContext* instr) { |
| 1200 LOperand* context = UseRegisterAtStart(instr->value()); | 1205 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1201 return DefineAsRegister(new LOuterContext(context)); | 1206 return DefineAsRegister(new LOuterContext(context)); |
| 1202 } | 1207 } |
| 1203 | 1208 |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 LOperand* key = UseOrConstantAtStart(instr->key()); | 2229 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2225 LOperand* object = UseOrConstantAtStart(instr->object()); | 2230 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2226 LIn* result = new LIn(key, object); | 2231 LIn* result = new LIn(key, object); |
| 2227 return MarkAsCall(DefineFixed(result, rax), instr); | 2232 return MarkAsCall(DefineFixed(result, rax), instr); |
| 2228 } | 2233 } |
| 2229 | 2234 |
| 2230 | 2235 |
| 2231 } } // namespace v8::internal | 2236 } } // namespace v8::internal |
| 2232 | 2237 |
| 2233 #endif // V8_TARGET_ARCH_X64 | 2238 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |