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

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

Issue 8373029: [hydrogen] optimize switch with string clauses (Closed) Base URL: gh:v8/v8@master
Patch Set: last_block != NULL for string cases Created 9 years, 1 month 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 1338
1339 1339
1340 1340
1341 void HCompareGeneric::PrintDataTo(StringStream* stream) { 1341 void HCompareGeneric::PrintDataTo(StringStream* stream) {
1342 stream->Add(Token::Name(token())); 1342 stream->Add(Token::Name(token()));
1343 stream->Add(" "); 1343 stream->Add(" ");
1344 HBinaryOperation::PrintDataTo(stream); 1344 HBinaryOperation::PrintDataTo(stream);
1345 } 1345 }
1346 1346
1347 1347
1348 void HCompareGenericAndBranch::PrintDataTo(StringStream* stream) {
1349 stream->Add(Token::Name(token()));
1350 stream->Add(" ");
1351 HControlInstruction::PrintDataTo(stream);
1352 }
1353
1354
1348 void HCompareIDAndBranch::PrintDataTo(StringStream* stream) { 1355 void HCompareIDAndBranch::PrintDataTo(StringStream* stream) {
1349 stream->Add(Token::Name(token())); 1356 stream->Add(Token::Name(token()));
1350 stream->Add(" "); 1357 stream->Add(" ");
1351 left()->PrintNameTo(stream); 1358 left()->PrintNameTo(stream);
1352 stream->Add(" "); 1359 stream->Add(" ");
1353 right()->PrintNameTo(stream); 1360 right()->PrintNameTo(stream);
1354 HControlInstruction::PrintDataTo(stream); 1361 HControlInstruction::PrintDataTo(stream);
1355 } 1362 }
1356 1363
1357 1364
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 1991
1985 1992
1986 void HCheckPrototypeMaps::Verify() { 1993 void HCheckPrototypeMaps::Verify() {
1987 HInstruction::Verify(); 1994 HInstruction::Verify();
1988 ASSERT(HasNoUses()); 1995 ASSERT(HasNoUses());
1989 } 1996 }
1990 1997
1991 #endif 1998 #endif
1992 1999
1993 } } // namespace v8::internal 2000 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698