Reviewers: Jakob, Description: Print value and type check dependency for JSArrayLength instruction.
Please review this at http://codereview.chromium.org/7800028/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/hydrogen-instructions.h M src/hydrogen-instructions.cc Index: src/hydrogen-instructions.cc =================================================================== --- src/hydrogen-instructions.cc (revision 9125) +++ src/hydrogen-instructions.cc (working copy) @@ -789,6 +789,13 @@ } +void HJSArrayLength::PrintDataTo(StringStream* stream) { + value()->PrintNameTo(stream); + stream->Add(" "); + typecheck()->PrintNameTo(stream); +} + + HValue* HCheckInstanceType::Canonicalize() { if (check_ == IS_STRING && !value()->type().IsUninitialized() && Index: src/hydrogen-instructions.h =================================================================== --- src/hydrogen-instructions.h (revision 9125) +++ src/hydrogen-instructions.h (working copy) @@ -1694,7 +1694,10 @@ return Representation::Tagged(); } + virtual void PrintDataTo(StringStream* stream); + HValue* value() { return OperandAt(0); } + HValue* typecheck() { return OperandAt(1); } DECLARE_CONCRETE_INSTRUCTION(JSArrayLength) -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
