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

Unified Diff: src/full-codegen.h

Issue 344513004: Fix a potential overflow in SortedListBSearch (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: optimize Deoptimizer::GetOutputInfo Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index cede9acaddf1c13a46b359b37c55893ab54f2038..5b86615ba3b5213e1600581ba95a48d173c83200 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -625,6 +625,15 @@ class FullCodeGenerator: public AstVisitor {
struct BailoutEntry {
BailoutId id;
unsigned pc_and_state;
+ static int CompareBailoutId(const BailoutEntry* a, const BailoutEntry* b) {
+ if (a->id == b->id) {
+ return 0;
+ } else if (a->id < b->id) {
+ return -1;
+ } else {
+ return +1;
+ }
+ }
};
struct BackEdgeEntry {
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698