Print value and type check dependency for JSArrayLength instruction.

Review URL: http://codereview.chromium.org/7800028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9139 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d8cec510
...@@ -789,6 +789,13 @@ void HChange::PrintDataTo(StringStream* stream) { ...@@ -789,6 +789,13 @@ void HChange::PrintDataTo(StringStream* stream) {
} }
void HJSArrayLength::PrintDataTo(StringStream* stream) {
value()->PrintNameTo(stream);
stream->Add(" ");
typecheck()->PrintNameTo(stream);
}
HValue* HCheckInstanceType::Canonicalize() { HValue* HCheckInstanceType::Canonicalize() {
if (check_ == IS_STRING && if (check_ == IS_STRING &&
!value()->type().IsUninitialized() && !value()->type().IsUninitialized() &&
......
...@@ -1694,7 +1694,10 @@ class HJSArrayLength: public HTemplateInstruction<2> { ...@@ -1694,7 +1694,10 @@ class HJSArrayLength: public HTemplateInstruction<2> {
return Representation::Tagged(); return Representation::Tagged();
} }
virtual void PrintDataTo(StringStream* stream);
HValue* value() { return OperandAt(0); } HValue* value() { return OperandAt(0); }
HValue* typecheck() { return OperandAt(1); }
DECLARE_CONCRETE_INSTRUCTION(JSArrayLength) DECLARE_CONCRETE_INSTRUCTION(JSArrayLength)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment