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

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

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: tweak heuristic Created 7 years, 6 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/full-codegen-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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 977
978 void HInductionVariableAnnotation::PrintDataTo(StringStream* stream) { 978 void HInductionVariableAnnotation::PrintDataTo(StringStream* stream) {
979 stream->Add("("); 979 stream->Add("(");
980 RedefinedOperand()->PrintNameTo(stream); 980 RedefinedOperand()->PrintNameTo(stream);
981 stream->Add(" %s ", relation().Mnemonic()); 981 stream->Add(" %s ", relation().Mnemonic());
982 induction_base()->PrintNameTo(stream); 982 induction_base()->PrintNameTo(stream);
983 stream->Add(")"); 983 stream->Add(")");
984 } 984 }
985 985
986 986
987 void HDeoptCounter::PrintDataTo(StringStream* stream) {
988 stream->Add("c%d", id());
989 }
990
991
992 void HDeoptCounterAdd::PrintDataTo(StringStream* stream) {
993 stream->Add("c%d +(%d)", counter()->id(), delta());
994 }
995
996
987 void HDummyUse::PrintDataTo(StringStream* stream) { 997 void HDummyUse::PrintDataTo(StringStream* stream) {
988 value()->PrintNameTo(stream); 998 value()->PrintNameTo(stream);
989 } 999 }
990 1000
991 1001
992 void HUnaryCall::PrintDataTo(StringStream* stream) { 1002 void HUnaryCall::PrintDataTo(StringStream* stream) {
993 value()->PrintNameTo(stream); 1003 value()->PrintNameTo(stream);
994 stream->Add(" "); 1004 stream->Add(" ");
995 stream->Add("#%d", argument_count()); 1005 stream->Add("#%d", argument_count());
996 } 1006 }
(...skipping 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 case kBackingStore: 3815 case kBackingStore:
3806 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3816 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3807 stream->Add("[backing-store]"); 3817 stream->Add("[backing-store]");
3808 break; 3818 break;
3809 } 3819 }
3810 3820
3811 stream->Add("@%d", offset()); 3821 stream->Add("@%d", offset());
3812 } 3822 }
3813 3823
3814 } } // namespace v8::internal 3824 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698