| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 | 1299 |
| 1300 | 1300 |
| 1301 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | 1301 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { |
| 1302 LInstruction* result = | 1302 LInstruction* result = |
| 1303 new LInstanceOf(UseFixed(instr->left(), r0), | 1303 new LInstanceOf(UseFixed(instr->left(), r0), |
| 1304 UseFixed(instr->right(), r1)); | 1304 UseFixed(instr->right(), r1)); |
| 1305 return MarkAsCall(DefineFixed(result, r0), instr); | 1305 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 | 1308 |
| 1309 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( |
| 1310 HInstanceOfKnownGlobal* instr) { |
| 1311 LInstruction* result = |
| 1312 new LInstanceOfKnownGlobal(UseFixed(instr->value(), r0)); |
| 1313 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1314 } |
| 1315 |
| 1316 |
| 1309 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1317 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 1310 LOperand* function = UseFixed(instr->function(), r1); | 1318 LOperand* function = UseFixed(instr->function(), r1); |
| 1311 LOperand* receiver = UseFixed(instr->receiver(), r0); | 1319 LOperand* receiver = UseFixed(instr->receiver(), r0); |
| 1312 LOperand* length = UseRegisterAtStart(instr->length()); | 1320 LOperand* length = UseRegisterAtStart(instr->length()); |
| 1313 LOperand* elements = UseRegisterAtStart(instr->elements()); | 1321 LOperand* elements = UseRegisterAtStart(instr->elements()); |
| 1314 LInstruction* result = new LApplyArguments(function, | 1322 LInstruction* result = new LApplyArguments(function, |
| 1315 receiver, | 1323 receiver, |
| 1316 length, | 1324 length, |
| 1317 elements); | 1325 elements); |
| 1318 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1326 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 void LPointerMap::PrintTo(StringStream* stream) const { | 2107 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2100 stream->Add("{"); | 2108 stream->Add("{"); |
| 2101 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2109 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2102 if (i != 0) stream->Add(";"); | 2110 if (i != 0) stream->Add(";"); |
| 2103 pointer_operands_[i]->PrintTo(stream); | 2111 pointer_operands_[i]->PrintTo(stream); |
| 2104 } | 2112 } |
| 2105 stream->Add("} @%d", position()); | 2113 stream->Add("} @%d", position()); |
| 2106 } | 2114 } |
| 2107 | 2115 |
| 2108 } } // namespace v8::internal | 2116 } } // namespace v8::internal |
| OLD | NEW |