| 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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1282 LInstruction* LChunkBuilder::DoCompareMapAndBranch( | 1282 LInstruction* LChunkBuilder::DoCompareMapAndBranch( | 
| 1283     HCompareMapAndBranch* instr) { | 1283     HCompareMapAndBranch* instr) { | 
| 1284   ASSERT(instr->value()->representation().IsTagged()); | 1284   ASSERT(instr->value()->representation().IsTagged()); | 
| 1285   LOperand* value = UseRegisterAtStart(instr->value()); | 1285   LOperand* value = UseRegisterAtStart(instr->value()); | 
| 1286   LOperand* temp = TempRegister(); | 1286   LOperand* temp = TempRegister(); | 
| 1287   return new LCmpMapAndBranch(value, temp); | 1287   return new LCmpMapAndBranch(value, temp); | 
| 1288 } | 1288 } | 
| 1289 | 1289 | 
| 1290 | 1290 | 
| 1291 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { | 1291 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { | 
| 1292   return DefineAsRegister(new LArgumentsLength(Use(length->value()))); | 1292   return DefineAsRegister(new LArgumentsLength(UseRegister(length->value()))); | 
| 1293 } | 1293 } | 
| 1294 | 1294 | 
| 1295 | 1295 | 
| 1296 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 1296 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 
| 1297   return DefineAsRegister(new LArgumentsElements); | 1297   return DefineAsRegister(new LArgumentsElements); | 
| 1298 } | 1298 } | 
| 1299 | 1299 | 
| 1300 | 1300 | 
| 1301 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | 1301 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | 
| 1302   LInstruction* result = | 1302   LInstruction* result = | 
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1675 | 1675 | 
| 1676 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1676 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 
| 1677   LOperand* object = UseRegister(instr->value()); | 1677   LOperand* object = UseRegister(instr->value()); | 
| 1678   LInstruction* result = new LValueOf(object, TempRegister()); | 1678   LInstruction* result = new LValueOf(object, TempRegister()); | 
| 1679   return AssignEnvironment(DefineSameAsFirst(result)); | 1679   return AssignEnvironment(DefineSameAsFirst(result)); | 
| 1680 } | 1680 } | 
| 1681 | 1681 | 
| 1682 | 1682 | 
| 1683 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1683 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 
| 1684   return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), | 1684   return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), | 
| 1685                                             Use(instr->length()))); | 1685                                             UseRegister(instr->length()))); | 
| 1686 } | 1686 } | 
| 1687 | 1687 | 
| 1688 | 1688 | 
| 1689 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | 1689 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | 
| 1690   LOperand* value = UseFixed(instr->value(), r0); | 1690   LOperand* value = UseFixed(instr->value(), r0); | 
| 1691   return MarkAsCall(new LThrow(value), instr); | 1691   return MarkAsCall(new LThrow(value), instr); | 
| 1692 } | 1692 } | 
| 1693 | 1693 | 
| 1694 | 1694 | 
| 1695 LInstruction* LChunkBuilder::DoChange(HChange* instr) { | 1695 LInstruction* LChunkBuilder::DoChange(HChange* instr) { | 
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2015 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 2015 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 
| 2016   // There are no real uses of the arguments object (we bail out in all other | 2016   // There are no real uses of the arguments object (we bail out in all other | 
| 2017   // cases). | 2017   // cases). | 
| 2018   return NULL; | 2018   return NULL; | 
| 2019 } | 2019 } | 
| 2020 | 2020 | 
| 2021 | 2021 | 
| 2022 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 2022 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 
| 2023   LOperand* arguments = UseRegister(instr->arguments()); | 2023   LOperand* arguments = UseRegister(instr->arguments()); | 
| 2024   LOperand* length = UseTempRegister(instr->length()); | 2024   LOperand* length = UseTempRegister(instr->length()); | 
| 2025   LOperand* index = Use(instr->index()); | 2025   LOperand* index = UseRegister(instr->index()); | 
| 2026   LInstruction* result = new LAccessArgumentsAt(arguments, length, index); | 2026   LInstruction* result = new LAccessArgumentsAt(arguments, length, index); | 
| 2027   return DefineAsRegister(AssignEnvironment(result)); | 2027   return DefineAsRegister(AssignEnvironment(result)); | 
| 2028 } | 2028 } | 
| 2029 | 2029 | 
| 2030 | 2030 | 
| 2031 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2031 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 
| 2032   LInstruction* result = new LTypeof(Use(instr->value())); | 2032   LInstruction* result = new LTypeof(Use(instr->value())); | 
| 2033   return MarkAsCall(DefineFixed(result, r0), instr); | 2033   return MarkAsCall(DefineFixed(result, r0), instr); | 
| 2034 } | 2034 } | 
| 2035 | 2035 | 
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2107 void LPointerMap::PrintTo(StringStream* stream) const { | 2107 void LPointerMap::PrintTo(StringStream* stream) const { | 
| 2108   stream->Add("{"); | 2108   stream->Add("{"); | 
| 2109   for (int i = 0; i < pointer_operands_.length(); ++i) { | 2109   for (int i = 0; i < pointer_operands_.length(); ++i) { | 
| 2110     if (i != 0) stream->Add(";"); | 2110     if (i != 0) stream->Add(";"); | 
| 2111     pointer_operands_[i]->PrintTo(stream); | 2111     pointer_operands_[i]->PrintTo(stream); | 
| 2112   } | 2112   } | 
| 2113   stream->Add("} @%d", position()); | 2113   stream->Add("} @%d", position()); | 
| 2114 } | 2114 } | 
| 2115 | 2115 | 
| 2116 } }  // namespace v8::internal | 2116 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|