| Index: src/hydrogen-instructions.cc
|
| ===================================================================
|
| --- src/hydrogen-instructions.cc (revision 9412)
|
| +++ src/hydrogen-instructions.cc (working copy)
|
| @@ -707,6 +707,14 @@
|
| }
|
|
|
|
|
| +void HIsNilAndBranch::PrintDataTo(StringStream* stream) {
|
| + value()->PrintNameTo(stream);
|
| + stream->Add(kind() == kStrictEquality ? " === " : " == ");
|
| + stream->Add(nil() == kNullValue ? "null" : "undefined");
|
| + HControlInstruction::PrintDataTo(stream);
|
| +}
|
| +
|
| +
|
| void HReturn::PrintDataTo(StringStream* stream) {
|
| value()->PrintNameTo(stream);
|
| }
|
| @@ -777,9 +785,15 @@
|
| value()->PrintNameTo(stream);
|
| stream->Add(" == ");
|
| stream->Add(type_literal_->GetFlatContent().ToAsciiVector());
|
| + HControlInstruction::PrintDataTo(stream);
|
| }
|
|
|
|
|
| +void HTypeof::PrintDataTo(StringStream* stream) {
|
| + value()->PrintNameTo(stream);
|
| +}
|
| +
|
| +
|
| void HChange::PrintDataTo(StringStream* stream) {
|
| HUnaryOperation::PrintDataTo(stream);
|
| stream->Add(" %s to %s", from_.Mnemonic(), to().Mnemonic());
|
| @@ -857,6 +871,23 @@
|
| }
|
|
|
|
|
| +const char* HCheckInstanceType::GetCheckName() {
|
| + switch (check_) {
|
| + case IS_SPEC_OBJECT: return "object";
|
| + case IS_JS_ARRAY: return "array";
|
| + case IS_STRING: return "string";
|
| + case IS_SYMBOL: return "symbol";
|
| + default: UNREACHABLE();
|
| + }
|
| + return "";
|
| +}
|
| +
|
| +void HCheckInstanceType::PrintDataTo(StringStream* stream) {
|
| + stream->Add("%s ", GetCheckName());
|
| + HUnaryOperation::PrintDataTo(stream);
|
| +}
|
| +
|
| +
|
| void HCallStub::PrintDataTo(StringStream* stream) {
|
| stream->Add("%s ",
|
| CodeStub::MajorName(major_key_, false));
|
| @@ -1311,6 +1342,14 @@
|
| }
|
|
|
|
|
| +void HCompareObjectEqAndBranch::PrintDataTo(StringStream* stream) {
|
| + left()->PrintNameTo(stream);
|
| + stream->Add(" ");
|
| + right()->PrintNameTo(stream);
|
| + HControlInstruction::PrintDataTo(stream);
|
| +}
|
| +
|
| +
|
| void HGoto::PrintDataTo(StringStream* stream) {
|
| stream->Add("B%d", SuccessorAt(0)->block_id());
|
| }
|
|
|