OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 stream->Add(")"); | 1247 stream->Add(")"); |
1248 } | 1248 } |
1249 | 1249 |
1250 | 1250 |
1251 void HUnaryControlInstruction::PrintDataTo(StringStream* stream) { | 1251 void HUnaryControlInstruction::PrintDataTo(StringStream* stream) { |
1252 value()->PrintNameTo(stream); | 1252 value()->PrintNameTo(stream); |
1253 HControlInstruction::PrintDataTo(stream); | 1253 HControlInstruction::PrintDataTo(stream); |
1254 } | 1254 } |
1255 | 1255 |
1256 | 1256 |
1257 void HIsNilAndBranch::PrintDataTo(StringStream* stream) { | |
1258 value()->PrintNameTo(stream); | |
1259 stream->Add(kind() == kStrictEquality ? " === " : " == "); | |
1260 stream->Add(nil() == kNullValue ? "null" : "undefined"); | |
1261 HControlInstruction::PrintDataTo(stream); | |
1262 } | |
1263 | |
1264 | |
1265 void HReturn::PrintDataTo(StringStream* stream) { | 1257 void HReturn::PrintDataTo(StringStream* stream) { |
1266 value()->PrintNameTo(stream); | 1258 value()->PrintNameTo(stream); |
1267 stream->Add(" (pop "); | 1259 stream->Add(" (pop "); |
1268 parameter_count()->PrintNameTo(stream); | 1260 parameter_count()->PrintNameTo(stream); |
1269 stream->Add(" values)"); | 1261 stream->Add(" values)"); |
1270 } | 1262 } |
1271 | 1263 |
1272 | 1264 |
1273 Representation HBranch::observed_input_representation(int index) { | 1265 Representation HBranch::observed_input_representation(int index) { |
1274 static const ToBooleanStub::Types tagged_types( | 1266 static const ToBooleanStub::Types tagged_types( |
(...skipping 2390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3665 | 3657 |
3666 | 3658 |
3667 void HCheckFunction::Verify() { | 3659 void HCheckFunction::Verify() { |
3668 HInstruction::Verify(); | 3660 HInstruction::Verify(); |
3669 ASSERT(HasNoUses()); | 3661 ASSERT(HasNoUses()); |
3670 } | 3662 } |
3671 | 3663 |
3672 #endif | 3664 #endif |
3673 | 3665 |
3674 } } // namespace v8::internal | 3666 } } // namespace v8::internal |
OLD | NEW |