| Index: src/arm/lithium-arm.cc
|
| ===================================================================
|
| --- src/arm/lithium-arm.cc (revision 9305)
|
| +++ src/arm/lithium-arm.cc (working copy)
|
| @@ -212,10 +212,11 @@
|
| }
|
|
|
|
|
| -void LIsNullAndBranch::PrintDataTo(StringStream* stream) {
|
| +void LIsNilAndBranch::PrintDataTo(StringStream* stream) {
|
| stream->Add("if ");
|
| InputAt(0)->PrintTo(stream);
|
| - stream->Add(is_strict() ? " === null" : " == null");
|
| + stream->Add(kind() == kStrictEquality ? " === " : " == ");
|
| + stream->Add(nil() == kNullValue ? "null" : "undefined");
|
| stream->Add(" then B%d else B%d", true_block_id(), false_block_id());
|
| }
|
|
|
| @@ -1444,9 +1445,9 @@
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoIsNullAndBranch(HIsNullAndBranch* instr) {
|
| +LInstruction* LChunkBuilder::DoIsNilAndBranch(HIsNilAndBranch* instr) {
|
| ASSERT(instr->value()->representation().IsTagged());
|
| - return new LIsNullAndBranch(UseRegisterAtStart(instr->value()));
|
| + return new LIsNilAndBranch(UseRegisterAtStart(instr->value()));
|
| }
|
|
|
|
|
|
|