Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: src/hydrogen-instructions.cc

Issue 13728002: Add an IC for CompareNil operations (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix SunSpider regression Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 stream->Add(")"); 1257 stream->Add(")");
1258 } 1258 }
1259 1259
1260 1260
1261 void HUnaryControlInstruction::PrintDataTo(StringStream* stream) { 1261 void HUnaryControlInstruction::PrintDataTo(StringStream* stream) {
1262 value()->PrintNameTo(stream); 1262 value()->PrintNameTo(stream);
1263 HControlInstruction::PrintDataTo(stream); 1263 HControlInstruction::PrintDataTo(stream);
1264 } 1264 }
1265 1265
1266 1266
1267 void HIsNilAndBranch::PrintDataTo(StringStream* stream) {
1268 value()->PrintNameTo(stream);
1269 stream->Add(kind() == kStrictEquality ? " === " : " == ");
1270 stream->Add(nil() == kNullValue ? "null" : "undefined");
1271 HControlInstruction::PrintDataTo(stream);
1272 }
1273
1274
1275 void HReturn::PrintDataTo(StringStream* stream) { 1267 void HReturn::PrintDataTo(StringStream* stream) {
1276 value()->PrintNameTo(stream); 1268 value()->PrintNameTo(stream);
1277 stream->Add(" (pop "); 1269 stream->Add(" (pop ");
1278 parameter_count()->PrintNameTo(stream); 1270 parameter_count()->PrintNameTo(stream);
1279 stream->Add(" values)"); 1271 stream->Add(" values)");
1280 } 1272 }
1281 1273
1282 1274
1283 Representation HBranch::observed_input_representation(int index) { 1275 Representation HBranch::observed_input_representation(int index) {
1284 static const ToBooleanStub::Types tagged_types( 1276 static const ToBooleanStub::Types tagged_types(
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3591 3583
3592 3584
3593 void HCheckFunction::Verify() { 3585 void HCheckFunction::Verify() {
3594 HInstruction::Verify(); 3586 HInstruction::Verify();
3595 ASSERT(HasNoUses()); 3587 ASSERT(HasNoUses());
3596 } 3588 }
3597 3589
3598 #endif 3590 #endif
3599 3591
3600 } } // namespace v8::internal 3592 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698