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

Side by Side Diff: src/deoptimizer.h

Issue 889743003: Make GCC happy again. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | 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_DEOPTIMIZER_H_ 5 #ifndef V8_DEOPTIMIZER_H_
6 #define V8_DEOPTIMIZER_H_ 6 #define V8_DEOPTIMIZER_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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 89
90 class Deoptimizer : public Malloced { 90 class Deoptimizer : public Malloced {
91 public: 91 public:
92 enum BailoutType { 92 enum BailoutType {
93 EAGER, 93 EAGER,
94 LAZY, 94 LAZY,
95 SOFT, 95 SOFT,
96 // This last bailout type is not really a bailout, but used by the 96 // This last bailout type is not really a bailout, but used by the
97 // debugger to deoptimize stack frames to allow inspection. 97 // debugger to deoptimize stack frames to allow inspection.
98 DEBUGGER 98 DEBUGGER,
99 kBailoutTypesWithCodeEntry = SOFT + 1
99 }; 100 };
100 101
101 enum { kBailoutTypesWithCodeEntry = SOFT + 1 };
102
103 struct Reason { 102 struct Reason {
104 Reason(int r, const char* m, const char* d) 103 Reason(int r, const char* m, const char* d)
105 : raw_position(r), mnemonic(m), detail(d) {} 104 : raw_position(r), mnemonic(m), detail(d) {}
106 105
107 bool operator==(const Reason& other) const { 106 bool operator==(const Reason& other) const {
108 return raw_position == other.raw_position && 107 return raw_position == other.raw_position &&
109 CStringEquals(mnemonic, other.mnemonic) && 108 CStringEquals(mnemonic, other.mnemonic) &&
110 CStringEquals(detail, other.detail); 109 CStringEquals(detail, other.detail);
111 } 110 }
112 111
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 Object** parameters_; 979 Object** parameters_;
981 Object** expression_stack_; 980 Object** expression_stack_;
982 int source_position_; 981 int source_position_;
983 982
984 friend class Deoptimizer; 983 friend class Deoptimizer;
985 }; 984 };
986 985
987 } } // namespace v8::internal 986 } } // namespace v8::internal
988 987
989 #endif // V8_DEOPTIMIZER_H_ 988 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698