| 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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 ASSERT(instr->value()->representation().IsTagged()); | 1478 ASSERT(instr->value()->representation().IsTagged()); |
| 1479 LOperand* value = UseRegister(instr->value()); | 1479 LOperand* value = UseRegister(instr->value()); |
| 1480 | 1480 |
| 1481 return DefineAsRegister(new LHasCachedArrayIndex(value)); | 1481 return DefineAsRegister(new LHasCachedArrayIndex(value)); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 | 1484 |
| 1485 LInstruction* LChunkBuilder::DoClassOfTest(HClassOfTest* instr) { | 1485 LInstruction* LChunkBuilder::DoClassOfTest(HClassOfTest* instr) { |
| 1486 ASSERT(instr->value()->representation().IsTagged()); | 1486 ASSERT(instr->value()->representation().IsTagged()); |
| 1487 LOperand* value = UseTempRegister(instr->value()); | 1487 LOperand* value = UseTempRegister(instr->value()); |
| 1488 | |
| 1489 return DefineSameAsFirst(new LClassOfTest(value, TempRegister())); | 1488 return DefineSameAsFirst(new LClassOfTest(value, TempRegister())); |
| 1490 } | 1489 } |
| 1491 | 1490 |
| 1492 | 1491 |
| 1493 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1492 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
| 1494 LOperand* array = UseRegisterAtStart(instr->value()); | 1493 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1495 return DefineAsRegister(new LJSArrayLength(array)); | 1494 return DefineAsRegister(new LJSArrayLength(array)); |
| 1496 } | 1495 } |
| 1497 | 1496 |
| 1498 | 1497 |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1909 void LPointerMap::PrintTo(StringStream* stream) const { | 1908 void LPointerMap::PrintTo(StringStream* stream) const { |
| 1910 stream->Add("{"); | 1909 stream->Add("{"); |
| 1911 for (int i = 0; i < pointer_operands_.length(); ++i) { | 1910 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 1912 if (i != 0) stream->Add(";"); | 1911 if (i != 0) stream->Add(";"); |
| 1913 pointer_operands_[i]->PrintTo(stream); | 1912 pointer_operands_[i]->PrintTo(stream); |
| 1914 } | 1913 } |
| 1915 stream->Add("} @%d", position()); | 1914 stream->Add("} @%d", position()); |
| 1916 } | 1915 } |
| 1917 | 1916 |
| 1918 } } // namespace v8::internal | 1917 } } // namespace v8::internal |
| OLD | NEW |