Revision: 9139
Author: [email protected]
Date: Mon Sep 5 06:28:56 2011
Log: Print value and type check dependency for JSArrayLength
instruction.
Review URL: http://codereview.chromium.org/7800028
http://code.google.com/p/v8/source/detail?r=9139
Modified:
/branches/bleeding_edge/src/hydrogen-instructions.cc
/branches/bleeding_edge/src/hydrogen-instructions.h
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.cc Thu Sep 1
07:59:47 2011
+++ /branches/bleeding_edge/src/hydrogen-instructions.cc Mon Sep 5
06:28:56 2011
@@ -787,6 +787,13 @@
if (CanTruncateToInt32()) stream->Add(" truncating-int32");
if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?");
}
+
+
+void HJSArrayLength::PrintDataTo(StringStream* stream) {
+ value()->PrintNameTo(stream);
+ stream->Add(" ");
+ typecheck()->PrintNameTo(stream);
+}
HValue* HCheckInstanceType::Canonicalize() {
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Thu Sep 1 04:06:03
2011
+++ /branches/bleeding_edge/src/hydrogen-instructions.h Mon Sep 5 06:28:56
2011
@@ -1693,8 +1693,11 @@
virtual Representation RequiredInputRepresentation(int index) const {
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