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

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

Issue 7350021: Crankshaft support for FixedDoubleArrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 5 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 1359
1360 bool HLoadKeyedFastElement::RequiresHoleCheck() const { 1360 bool HLoadKeyedFastElement::RequiresHoleCheck() const {
1361 for (HUseIterator it(uses()); !it.Done(); it.Advance()) { 1361 for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
1362 HValue* use = it.value(); 1362 HValue* use = it.value();
1363 if (!use->IsChange()) return true; 1363 if (!use->IsChange()) return true;
1364 } 1364 }
1365 return false; 1365 return false;
1366 } 1366 }
1367 1367
1368 1368
1369 void HLoadKeyedFastDoubleElement::PrintDataTo(StringStream* stream) {
1370 elements()->PrintNameTo(stream);
1371 stream->Add("[");
1372 key()->PrintNameTo(stream);
1373 stream->Add("]");
1374 }
1375
1376
1377 bool HLoadKeyedFastDoubleElement::RequiresHoleCheck() const {
1378 return true;
1379 }
1380
1381
1369 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) { 1382 void HLoadKeyedGeneric::PrintDataTo(StringStream* stream) {
1370 object()->PrintNameTo(stream); 1383 object()->PrintNameTo(stream);
1371 stream->Add("["); 1384 stream->Add("[");
1372 key()->PrintNameTo(stream); 1385 key()->PrintNameTo(stream);
1373 stream->Add("]"); 1386 stream->Add("]");
1374 } 1387 }
1375 1388
1376 1389
1377 void HLoadKeyedSpecializedArrayElement::PrintDataTo( 1390 void HLoadKeyedSpecializedArrayElement::PrintDataTo(
1378 StringStream* stream) { 1391 StringStream* stream) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 1457
1445 void HStoreKeyedFastElement::PrintDataTo(StringStream* stream) { 1458 void HStoreKeyedFastElement::PrintDataTo(StringStream* stream) {
1446 object()->PrintNameTo(stream); 1459 object()->PrintNameTo(stream);
1447 stream->Add("["); 1460 stream->Add("[");
1448 key()->PrintNameTo(stream); 1461 key()->PrintNameTo(stream);
1449 stream->Add("] = "); 1462 stream->Add("] = ");
1450 value()->PrintNameTo(stream); 1463 value()->PrintNameTo(stream);
1451 } 1464 }
1452 1465
1453 1466
1467 void HStoreKeyedFastDoubleElement::PrintDataTo(StringStream* stream) {
1468 elements()->PrintNameTo(stream);
1469 stream->Add("[");
1470 key()->PrintNameTo(stream);
1471 stream->Add("] = ");
1472 value()->PrintNameTo(stream);
1473 }
1474
1475
1454 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 1476 void HStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
1455 object()->PrintNameTo(stream); 1477 object()->PrintNameTo(stream);
1456 stream->Add("["); 1478 stream->Add("[");
1457 key()->PrintNameTo(stream); 1479 key()->PrintNameTo(stream);
1458 stream->Add("] = "); 1480 stream->Add("] = ");
1459 value()->PrintNameTo(stream); 1481 value()->PrintNameTo(stream);
1460 } 1482 }
1461 1483
1462 1484
1463 void HStoreKeyedSpecializedArrayElement::PrintDataTo( 1485 void HStoreKeyedSpecializedArrayElement::PrintDataTo(
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 1834
1813 1835
1814 void HCheckPrototypeMaps::Verify() { 1836 void HCheckPrototypeMaps::Verify() {
1815 HInstruction::Verify(); 1837 HInstruction::Verify();
1816 ASSERT(HasNoUses()); 1838 ASSERT(HasNoUses());
1817 } 1839 }
1818 1840
1819 #endif 1841 #endif
1820 1842
1821 } } // namespace v8::internal 1843 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698