| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index fea07a8da236416276082d9c2333404fd857800f..f843f3bc4eb4919ce96d41ca2c33cc970b79286d 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -196,22 +196,22 @@ void LGoto::PrintDataTo(StringStream* stream) {
|
|
|
| void LBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("B%d | B%d on ", true_block_id(), false_block_id());
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| }
|
|
|
|
|
| void LCmpIDAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if ");
|
| - InputAt(0)->PrintTo(stream);
|
| + left()->PrintTo(stream);
|
| stream->Add(" %s ", Token::String(op()));
|
| - InputAt(1)->PrintTo(stream);
|
| + right()->PrintTo(stream);
|
| stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LIsNilAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if ");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(kind() == kStrictEquality ? " === " : " == ");
|
| stream->Add(nil() == kNullValue ? "null" : "undefined");
|
| stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
|
| @@ -220,57 +220,57 @@ void LIsNilAndBranch::PrintDataTo(StringStream* stream) {
|
|
|
| void LIsObjectAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if is_object(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LIsStringAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if is_string(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LIsSmiAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if is_smi(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LIsUndetectableAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if is_undetectable(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LStringCompareAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if string_compare(");
|
| - InputAt(1)->PrintTo(stream);
|
| - InputAt(2)->PrintTo(stream);
|
| + left()->PrintTo(stream);
|
| + right()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LHasInstanceTypeAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if has_instance_type(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LHasCachedArrayIndexAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if has_cached_array_index(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(") then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
|
|
| void LClassOfTestAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if class_of_test(");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(", \"%o\") then B%d else B%d",
|
| *hydrogen()->class_name(),
|
| true_block_id(),
|
| @@ -280,7 +280,7 @@ void LClassOfTestAndBranch::PrintDataTo(StringStream* stream) {
|
|
|
| void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if typeof ");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| stream->Add(" == \"%s\" then B%d else B%d",
|
| *hydrogen()->type_literal()->ToCString(),
|
| true_block_id(), false_block_id());
|
| @@ -294,34 +294,34 @@ void LCallConstantFunction::PrintDataTo(StringStream* stream) {
|
|
|
| void LUnaryMathOperation::PrintDataTo(StringStream* stream) {
|
| stream->Add("/%s ", hydrogen()->OpName());
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| }
|
|
|
|
|
| void LMathPowHalf::PrintDataTo(StringStream* stream) {
|
| stream->Add("/pow_half ");
|
| - InputAt(0)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| }
|
|
|
|
|
| void LLoadContextSlot::PrintDataTo(StringStream* stream) {
|
| - InputAt(0)->PrintTo(stream);
|
| + context()->PrintTo(stream);
|
| stream->Add("[%d]", slot_index());
|
| }
|
|
|
|
|
| void LStoreContextSlot::PrintDataTo(StringStream* stream) {
|
| - InputAt(0)->PrintTo(stream);
|
| + context()->PrintTo(stream);
|
| stream->Add("[%d] <- ", slot_index());
|
| - InputAt(1)->PrintTo(stream);
|
| + value()->PrintTo(stream);
|
| }
|
|
|
|
|
| void LInvokeFunction::PrintDataTo(StringStream* stream) {
|
| stream->Add("= ");
|
| - InputAt(0)->PrintTo(stream);
|
| + context()->PrintTo(stream);
|
| stream->Add(" ");
|
| - InputAt(1)->PrintTo(stream);
|
| + function()->PrintTo(stream);
|
| stream->Add(" #%d / ", arity());
|
| }
|
|
|
| @@ -350,7 +350,9 @@ void LCallKnownGlobal::PrintDataTo(StringStream* stream) {
|
|
|
| void LCallNew::PrintDataTo(StringStream* stream) {
|
| stream->Add("= ");
|
| - InputAt(0)->PrintTo(stream);
|
| + context()->PrintTo(stream);
|
| + stream->Add(" ");
|
| + constructor()->PrintTo(stream);
|
| stream->Add(" #%d / ", arity());
|
| }
|
|
|
|
|