| Index: src/x64/lithium-x64.cc
|
| ===================================================================
|
| --- src/x64/lithium-x64.cc (revision 9305)
|
| +++ src/x64/lithium-x64.cc (working copy)
|
| @@ -214,10 +214,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());
|
| }
|
|
|
| @@ -1436,10 +1437,10 @@
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoIsNullAndBranch(HIsNullAndBranch* instr) {
|
| +LInstruction* LChunkBuilder::DoIsNilAndBranch(HIsNilAndBranch* instr) {
|
| ASSERT(instr->value()->representation().IsTagged());
|
| - LOperand* temp = instr->is_strict() ? NULL : TempRegister();
|
| - return new LIsNullAndBranch(UseRegisterAtStart(instr->value()), temp);
|
| + LOperand* temp = instr->kind() == kStrictEquality ? NULL : TempRegister();
|
| + return new LIsNilAndBranch(UseRegisterAtStart(instr->value()), temp);
|
| }
|
|
|
|
|
|
|