| 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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 | 1311 |
| 1312 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { | 1312 LInstruction* LChunkBuilder::DoArgumentsElements(HArgumentsElements* elems) { |
| 1313 return DefineAsRegister(new LArgumentsElements); | 1313 return DefineAsRegister(new LArgumentsElements); |
| 1314 } | 1314 } |
| 1315 | 1315 |
| 1316 | 1316 |
| 1317 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { | 1317 LInstruction* LChunkBuilder::DoInstanceOf(HInstanceOf* instr) { |
| 1318 LInstruction* result = | 1318 LInstruction* result = |
| 1319 new LInstanceOf(Use(instr->left()), Use(instr->right())); | 1319 new LInstanceOf(UseFixed(instr->left(), r1), |
| 1320 UseFixed(instr->right(), r0)); |
| 1320 return MarkAsCall(DefineFixed(result, r0), instr); | 1321 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1321 } | 1322 } |
| 1322 | 1323 |
| 1323 | 1324 |
| 1324 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1325 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 1325 LOperand* function = UseFixed(instr->function(), r1); | 1326 LOperand* function = UseFixed(instr->function(), r1); |
| 1326 LOperand* receiver = UseFixed(instr->receiver(), r0); | 1327 LOperand* receiver = UseFixed(instr->receiver(), r0); |
| 1327 LOperand* length = UseRegisterAtStart(instr->length()); | 1328 LOperand* length = UseRegisterAtStart(instr->length()); |
| 1328 LOperand* elements = UseRegisterAtStart(instr->elements()); | 1329 LOperand* elements = UseRegisterAtStart(instr->elements()); |
| 1329 LInstruction* result = new LApplyArguments(function, | 1330 LInstruction* result = new LApplyArguments(function, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 case kMathFloor: | 1369 case kMathFloor: |
| 1369 return AssignEnvironment(DefineAsRegister(result)); | 1370 return AssignEnvironment(DefineAsRegister(result)); |
| 1370 case kMathSqrt: | 1371 case kMathSqrt: |
| 1371 return DefineSameAsFirst(result); | 1372 return DefineSameAsFirst(result); |
| 1372 case kMathPowHalf: | 1373 case kMathPowHalf: |
| 1373 Abort("MathPowHalf LUnaryMathOperation not implemented"); | 1374 Abort("MathPowHalf LUnaryMathOperation not implemented"); |
| 1374 return NULL; | 1375 return NULL; |
| 1375 case kMathLog: | 1376 case kMathLog: |
| 1376 Abort("MathLog LUnaryMathOperation not implemented"); | 1377 Abort("MathLog LUnaryMathOperation not implemented"); |
| 1377 return NULL; | 1378 return NULL; |
| 1379 case kMathCos: |
| 1380 Abort("MathCos LUnaryMathOperation not implemented"); |
| 1381 return NULL; |
| 1382 case kMathSin: |
| 1383 Abort("MathSin LUnaryMathOperation not implemented"); |
| 1384 return NULL; |
| 1378 default: | 1385 default: |
| 1379 UNREACHABLE(); | 1386 UNREACHABLE(); |
| 1380 return NULL; | 1387 return NULL; |
| 1381 } | 1388 } |
| 1382 } | 1389 } |
| 1383 | 1390 |
| 1384 | 1391 |
| 1385 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { | 1392 LInstruction* LChunkBuilder::DoCallKeyed(HCallKeyed* instr) { |
| 1386 ASSERT(instr->key()->representation().IsTagged()); | 1393 ASSERT(instr->key()->representation().IsTagged()); |
| 1387 argument_count_ -= instr->argument_count(); | 1394 argument_count_ -= instr->argument_count(); |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 void LPointerMap::PrintTo(StringStream* stream) const { | 2113 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2107 stream->Add("{"); | 2114 stream->Add("{"); |
| 2108 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2115 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2109 if (i != 0) stream->Add(";"); | 2116 if (i != 0) stream->Add(";"); |
| 2110 pointer_operands_[i]->PrintTo(stream); | 2117 pointer_operands_[i]->PrintTo(stream); |
| 2111 } | 2118 } |
| 2112 stream->Add("} @%d", position()); | 2119 stream->Add("} @%d", position()); |
| 2113 } | 2120 } |
| 2114 | 2121 |
| 2115 } } // namespace v8::internal | 2122 } } // namespace v8::internal |
| OLD | NEW |