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

Side by Side Diff: src/deoptimizer.h

Issue 582743002: Emit comment with instruction+reason before deopt calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 LAZY, 95 LAZY,
96 SOFT, 96 SOFT,
97 // This last bailout type is not really a bailout, but used by the 97 // This last bailout type is not really a bailout, but used by the
98 // debugger to deoptimize stack frames to allow inspection. 98 // debugger to deoptimize stack frames to allow inspection.
99 DEBUGGER 99 DEBUGGER
100 }; 100 };
101 101
102 static const int kBailoutTypesWithCodeEntry = SOFT + 1; 102 static const int kBailoutTypesWithCodeEntry = SOFT + 1;
103 103
104 struct JumpTableEntry : public ZoneObject { 104 struct JumpTableEntry : public ZoneObject {
105 inline JumpTableEntry(Address entry, 105 inline JumpTableEntry(Address entry, const char* the_mnemonic,
106 Deoptimizer::BailoutType type, 106 const char* the_reason, Deoptimizer::BailoutType type,
107 bool frame) 107 bool frame)
108 : label(), 108 : label(),
109 address(entry), 109 address(entry),
110 mnemonic(the_mnemonic),
111 reason(the_reason),
110 bailout_type(type), 112 bailout_type(type),
111 needs_frame(frame) { } 113 needs_frame(frame) {}
112 Label label; 114 Label label;
113 Address address; 115 Address address;
116 const char* mnemonic;
117 const char* reason;
114 Deoptimizer::BailoutType bailout_type; 118 Deoptimizer::BailoutType bailout_type;
115 bool needs_frame; 119 bool needs_frame;
116 }; 120 };
117 121
118 static bool TraceEnabledFor(BailoutType deopt_type, 122 static bool TraceEnabledFor(BailoutType deopt_type,
119 StackFrame::Type frame_type); 123 StackFrame::Type frame_type);
120 static const char* MessageFor(BailoutType type); 124 static const char* MessageFor(BailoutType type);
121 125
122 int output_count() const { return output_count_; } 126 int output_count() const { return output_count_; }
123 127
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 Object** parameters_; 960 Object** parameters_;
957 Object** expression_stack_; 961 Object** expression_stack_;
958 int source_position_; 962 int source_position_;
959 963
960 friend class Deoptimizer; 964 friend class Deoptimizer;
961 }; 965 };
962 966
963 } } // namespace v8::internal 967 } } // namespace v8::internal
964 968
965 #endif // V8_DEOPTIMIZER_H_ 969 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698