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

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

Issue 12491023: Remove (H|L)JSArrayLength instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 void HChange::PrintDataTo(StringStream* stream) { 1460 void HChange::PrintDataTo(StringStream* stream) {
1461 HUnaryOperation::PrintDataTo(stream); 1461 HUnaryOperation::PrintDataTo(stream);
1462 stream->Add(" %s to %s", from().Mnemonic(), to().Mnemonic()); 1462 stream->Add(" %s to %s", from().Mnemonic(), to().Mnemonic());
1463 1463
1464 if (CanTruncateToInt32()) stream->Add(" truncating-int32"); 1464 if (CanTruncateToInt32()) stream->Add(" truncating-int32");
1465 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); 1465 if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
1466 if (CheckFlag(kDeoptimizeOnUndefined)) stream->Add(" deopt-on-undefined"); 1466 if (CheckFlag(kDeoptimizeOnUndefined)) stream->Add(" deopt-on-undefined");
1467 } 1467 }
1468 1468
1469 1469
1470 void HJSArrayLength::PrintDataTo(StringStream* stream) {
1471 value()->PrintNameTo(stream);
1472 if (HasTypeCheck()) {
1473 stream->Add(" ");
1474 typecheck()->PrintNameTo(stream);
1475 }
1476 }
1477
1478
1479 HValue* HUnaryMathOperation::Canonicalize() { 1470 HValue* HUnaryMathOperation::Canonicalize() {
1480 if (op() == kMathFloor) { 1471 if (op() == kMathFloor) {
1481 // If the input is integer32 then we replace the floor instruction 1472 // If the input is integer32 then we replace the floor instruction
1482 // with its input. This happens before the representation changes are 1473 // with its input. This happens before the representation changes are
1483 // introduced. 1474 // introduced.
1484 if (value()->representation().IsInteger32()) return value(); 1475 if (value()->representation().IsInteger32()) return value();
1485 1476
1486 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_IA32) || \ 1477 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_IA32) || \
1487 defined(V8_TARGET_ARCH_X64) 1478 defined(V8_TARGET_ARCH_X64)
1488 if (value()->IsDiv() && (value()->UseCount() == 1)) { 1479 if (value()->IsDiv() && (value()->UseCount() == 1)) {
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 3509
3519 3510
3520 void HCheckFunction::Verify() { 3511 void HCheckFunction::Verify() {
3521 HInstruction::Verify(); 3512 HInstruction::Verify();
3522 ASSERT(HasNoUses()); 3513 ASSERT(HasNoUses());
3523 } 3514 }
3524 3515
3525 #endif 3516 #endif
3526 3517
3527 } } // namespace v8::internal 3518 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698