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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | src/full-codegen.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 618
619 void Generate(); 619 void Generate();
620 void PopulateDeoptimizationData(Handle<Code> code); 620 void PopulateDeoptimizationData(Handle<Code> code);
621 void PopulateTypeFeedbackInfo(Handle<Code> code); 621 void PopulateTypeFeedbackInfo(Handle<Code> code);
622 622
623 Handle<FixedArray> handler_table() { return handler_table_; } 623 Handle<FixedArray> handler_table() { return handler_table_; }
624 624
625 struct BailoutEntry { 625 struct BailoutEntry {
626 BailoutId id; 626 BailoutId id;
627 unsigned pc_and_state; 627 unsigned pc_and_state;
628 static int CompareBailoutId(const BailoutEntry* a, const BailoutEntry* b) {
629 if (a->id == b->id) {
630 return 0;
631 } else if (a->id < b->id) {
632 return -1;
633 } else {
634 return +1;
635 }
636 }
628 }; 637 };
629 638
630 struct BackEdgeEntry { 639 struct BackEdgeEntry {
631 BailoutId id; 640 BailoutId id;
632 unsigned pc; 641 unsigned pc;
633 uint32_t loop_depth; 642 uint32_t loop_depth;
634 }; 643 };
635 644
636 class ExpressionContext BASE_EMBEDDED { 645 class ExpressionContext BASE_EMBEDDED {
637 public: 646 public:
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 943
935 Address start_; 944 Address start_;
936 Address instruction_start_; 945 Address instruction_start_;
937 uint32_t length_; 946 uint32_t length_;
938 }; 947 };
939 948
940 949
941 } } // namespace v8::internal 950 } } // namespace v8::internal
942 951
943 #endif // V8_FULL_CODEGEN_H_ 952 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« 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