Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: src/hydrogen-instructions.cc

Issue 7628017: Add roundsd instruction to ia32 and use it in optimized Math.floor. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 628
629 void HBinaryCall::PrintDataTo(StringStream* stream) { 629 void HBinaryCall::PrintDataTo(StringStream* stream) {
630 first()->PrintNameTo(stream); 630 first()->PrintNameTo(stream);
631 stream->Add(" "); 631 stream->Add(" ");
632 second()->PrintNameTo(stream); 632 second()->PrintNameTo(stream);
633 stream->Add(" "); 633 stream->Add(" ");
634 stream->Add("#%d", argument_count()); 634 stream->Add("#%d", argument_count());
635 } 635 }
636 636
637 637
638 void HBoundsCheck::PrintDataTo(StringStream* stream) {
639 index()->PrintNameTo(stream);
640 stream->Add(" ");
641 length()->PrintNameTo(stream);
642 }
643
638 void HCallConstantFunction::PrintDataTo(StringStream* stream) { 644 void HCallConstantFunction::PrintDataTo(StringStream* stream) {
639 if (IsApplyFunction()) { 645 if (IsApplyFunction()) {
640 stream->Add("optimized apply "); 646 stream->Add("optimized apply ");
641 } else { 647 } else {
642 stream->Add("%o ", function()->shared()->DebugName()); 648 stream->Add("%o ", function()->shared()->DebugName());
643 } 649 }
644 stream->Add("#%d", argument_count()); 650 stream->Add("#%d", argument_count());
645 } 651 }
646 652
647 653
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 found = true; 1363 found = true;
1358 break; 1364 break;
1359 } 1365 }
1360 } 1366 }
1361 if (!found) return false; 1367 if (!found) return false;
1362 } 1368 }
1363 return true; 1369 return true;
1364 } 1370 }
1365 1371
1366 1372
1373 void HLoadNamedFieldPolymorphic::PrintDataTo(StringStream* stream) {
1374 object()->PrintNameTo(stream);
1375 stream->Add(" .");
1376 stream->Add(*String::cast(*name())->ToCString());
1377 }
1378
1379
1380 void HLoadNamedGeneric::PrintDataTo(StringStream* stream) {
1381 object()->PrintNameTo(stream);
1382 stream->Add(" .");
1383 stream->Add(*String::cast(*name())->ToCString());
1384 }
1385
1386
1367 void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) { 1387 void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) {
1368 object()->PrintNameTo(stream); 1388 object()->PrintNameTo(stream);
1369 stream->Add("["); 1389 stream->Add("[");
1370 key()->PrintNameTo(stream); 1390 key()->PrintNameTo(stream);
1371 stream->Add("]"); 1391 stream->Add("]");
1372 } 1392 }
1373 1393
1374 1394
1375 bool HLoadKeyedFastElement::RequiresHoleCheck() const { 1395 bool HLoadKeyedFastElement::RequiresHoleCheck() const {
1376 for (HUseIterator it(uses()); !it.Done(); it.Advance()) { 1396 for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 1852
1833 1853
1834 void HCheckPrototypeMaps::Verify() { 1854 void HCheckPrototypeMaps::Verify() {
1835 HInstruction::Verify(); 1855 HInstruction::Verify();
1836 ASSERT(HasNoUses()); 1856 ASSERT(HasNoUses());
1837 } 1857 }
1838 1858
1839 #endif 1859 #endif
1840 1860
1841 } } // namespace v8::internal 1861 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698