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

Side by Side Diff: src/deoptimizer.h

Issue 1011733005: CpuProfiler: extract DeoptInfo fill in code into a static function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.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_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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 #define DEOPT_MESSAGES_CONSTANTS(C, T) C, 178 #define DEOPT_MESSAGES_CONSTANTS(C, T) C,
179 enum DeoptReason { 179 enum DeoptReason {
180 DEOPT_MESSAGES_LIST(DEOPT_MESSAGES_CONSTANTS) kLastDeoptReason 180 DEOPT_MESSAGES_LIST(DEOPT_MESSAGES_CONSTANTS) kLastDeoptReason
181 }; 181 };
182 #undef DEOPT_MESSAGES_CONSTANTS 182 #undef DEOPT_MESSAGES_CONSTANTS
183 static const char* GetDeoptReason(DeoptReason deopt_reason); 183 static const char* GetDeoptReason(DeoptReason deopt_reason);
184 184
185 struct DeoptInfo { 185 struct DeoptInfo {
186 DeoptInfo(SourcePosition position, const char* m, DeoptReason d) 186 DeoptInfo(SourcePosition position, const char* m, DeoptReason d)
187 : position(position), mnemonic(m), deopt_reason(d) {} 187 : position(position), mnemonic(m), deopt_reason(d), inlining_id(0) {}
188 188
189 SourcePosition position; 189 SourcePosition position;
190 const char* mnemonic; 190 const char* mnemonic;
191 DeoptReason deopt_reason; 191 DeoptReason deopt_reason;
192 int inlining_id;
192 }; 193 };
193 194
194 static DeoptInfo GetDeoptInfo(Code* code, byte* from); 195 static DeoptInfo GetDeoptInfo(Code* code, byte* from);
195 196
196 struct JumpTableEntry : public ZoneObject { 197 struct JumpTableEntry : public ZoneObject {
197 inline JumpTableEntry(Address entry, const DeoptInfo& deopt_info, 198 inline JumpTableEntry(Address entry, const DeoptInfo& deopt_info,
198 Deoptimizer::BailoutType type, bool frame) 199 Deoptimizer::BailoutType type, bool frame)
199 : label(), 200 : label(),
200 address(entry), 201 address(entry),
201 deopt_info(deopt_info), 202 deopt_info(deopt_info),
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 Object** parameters_; 1057 Object** parameters_;
1057 Object** expression_stack_; 1058 Object** expression_stack_;
1058 int source_position_; 1059 int source_position_;
1059 1060
1060 friend class Deoptimizer; 1061 friend class Deoptimizer;
1061 }; 1062 };
1062 1063
1063 } } // namespace v8::internal 1064 } } // namespace v8::internal
1064 1065
1065 #endif // V8_DEOPTIMIZER_H_ 1066 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698