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

Side by Side Diff: src/deoptimizer.h

Issue 587223002: Emit source positions in deopt comments, too. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/hydrogen-instructions.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 Reason { 104 struct Reason {
105 Reason(const char* m, const char* d) : mnemonic(m), detail(d) {} 105 Reason(int r, const char* m, const char* d)
106 : raw_position(r), mnemonic(m), detail(d) {}
107 int raw_position;
106 const char* mnemonic; 108 const char* mnemonic;
107 const char* detail; 109 const char* detail;
108 }; 110 };
109 111
110 struct JumpTableEntry : public ZoneObject { 112 struct JumpTableEntry : public ZoneObject {
111 inline JumpTableEntry(Address entry, const Reason& the_reason, 113 inline JumpTableEntry(Address entry, const Reason& the_reason,
112 Deoptimizer::BailoutType type, bool frame) 114 Deoptimizer::BailoutType type, bool frame)
113 : label(), 115 : label(),
114 address(entry), 116 address(entry),
115 reason(the_reason), 117 reason(the_reason),
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 Object** parameters_; 965 Object** parameters_;
964 Object** expression_stack_; 966 Object** expression_stack_;
965 int source_position_; 967 int source_position_;
966 968
967 friend class Deoptimizer; 969 friend class Deoptimizer;
968 }; 970 };
969 971
970 } } // namespace v8::internal 972 } } // namespace v8::internal
971 973
972 #endif // V8_DEOPTIMIZER_H_ 974 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698