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 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1592 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1592 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
1593 LOperand* value = UseRegisterAtStart(instr->value()); | 1593 LOperand* value = UseRegisterAtStart(instr->value()); |
1594 LInstruction* result = new LCheckInstanceType(value); | 1594 LInstruction* result = new LCheckInstanceType(value); |
1595 return AssignEnvironment(result); | 1595 return AssignEnvironment(result); |
1596 } | 1596 } |
1597 | 1597 |
1598 | 1598 |
1599 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 1599 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
1600 LOperand* temp1 = TempRegister(); | 1600 LOperand* temp1 = TempRegister(); |
1601 LOperand* temp2 = TempRegister(); | 1601 LOperand* temp2 = TempRegister(); |
1602 LInstruction* result = | 1602 LInstruction* result = new LCheckPrototypeMaps(temp1, temp2); |
1603 new LCheckPrototypeMaps(temp1, | |
1604 temp2, | |
1605 instr->holder(), | |
1606 instr->receiver_map()); | |
1607 return AssignEnvironment(result); | 1603 return AssignEnvironment(result); |
1608 } | 1604 } |
1609 | 1605 |
1610 | 1606 |
1611 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1607 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1612 LOperand* value = UseRegisterAtStart(instr->value()); | 1608 LOperand* value = UseRegisterAtStart(instr->value()); |
1613 return AssignEnvironment(new LCheckSmi(value, ne)); | 1609 return AssignEnvironment(new LCheckSmi(value, ne)); |
1614 } | 1610 } |
1615 | 1611 |
1616 | 1612 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 void LPointerMap::PrintTo(StringStream* stream) const { | 1909 void LPointerMap::PrintTo(StringStream* stream) const { |
1914 stream->Add("{"); | 1910 stream->Add("{"); |
1915 for (int i = 0; i < pointer_operands_.length(); ++i) { | 1911 for (int i = 0; i < pointer_operands_.length(); ++i) { |
1916 if (i != 0) stream->Add(";"); | 1912 if (i != 0) stream->Add(";"); |
1917 pointer_operands_[i]->PrintTo(stream); | 1913 pointer_operands_[i]->PrintTo(stream); |
1918 } | 1914 } |
1919 stream->Add("} @%d", position()); | 1915 stream->Add("} @%d", position()); |
1920 } | 1916 } |
1921 | 1917 |
1922 } } // namespace v8::internal | 1918 } } // namespace v8::internal |
OLD | NEW |