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

Side by Side Diff: src/disassembler.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include "src/disassembler.h" 5 #include "src/disassembler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 if (i == 0) { 165 if (i == 0) {
166 // The first reloc info is printed after the disassembled instruction. 166 // The first reloc info is printed after the disassembled instruction.
167 out.AddPadding(' ', kRelocInfoPosition - out.position()); 167 out.AddPadding(' ', kRelocInfoPosition - out.position());
168 } else { 168 } else {
169 // Additional reloc infos are printed on separate lines. 169 // Additional reloc infos are printed on separate lines.
170 DumpBuffer(os, &out); 170 DumpBuffer(os, &out);
171 out.AddPadding(' ', kRelocInfoPosition); 171 out.AddPadding(' ', kRelocInfoPosition);
172 } 172 }
173 173
174 RelocInfo::Mode rmode = relocinfo.rmode(); 174 RelocInfo::Mode rmode = relocinfo.rmode();
175 if (rmode == RelocInfo::DEOPT_POSITION) { 175 if (rmode == RelocInfo::DEOPT_SCRIPT_OFFSET) {
176 out.AddFormatted(" ;; debug: deopt position '%d'", 176 out.AddFormatted(" ;; debug: deopt position, script offset '%d'",
177 static_cast<int>(relocinfo.data()));
178 } else if (rmode == RelocInfo::DEOPT_INLINING_ID) {
179 out.AddFormatted(" ;; debug: deopt position, inlining id '%d'",
177 static_cast<int>(relocinfo.data())); 180 static_cast<int>(relocinfo.data()));
178 } else if (rmode == RelocInfo::DEOPT_REASON) { 181 } else if (rmode == RelocInfo::DEOPT_REASON) {
179 DeoptimizeReason reason = 182 DeoptimizeReason reason =
180 static_cast<DeoptimizeReason>(relocinfo.data()); 183 static_cast<DeoptimizeReason>(relocinfo.data());
181 out.AddFormatted(" ;; debug: deopt reason '%s'", 184 out.AddFormatted(" ;; debug: deopt reason '%s'",
182 DeoptimizeReasonToString(reason)); 185 DeoptimizeReasonToString(reason));
183 } else if (rmode == RelocInfo::DEOPT_ID) { 186 } else if (rmode == RelocInfo::DEOPT_ID) {
184 out.AddFormatted(" ;; debug: deopt index %d", 187 out.AddFormatted(" ;; debug: deopt index %d",
185 static_cast<int>(relocinfo.data())); 188 static_cast<int>(relocinfo.data()));
186 } else if (rmode == RelocInfo::EMBEDDED_OBJECT) { 189 } else if (rmode == RelocInfo::EMBEDDED_OBJECT) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 285
283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, 286 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
284 byte* end, Code* code) { 287 byte* end, Code* code) {
285 return 0; 288 return 0;
286 } 289 }
287 290
288 #endif // ENABLE_DISASSEMBLER 291 #endif // ENABLE_DISASSEMBLER
289 292
290 } // namespace internal 293 } // namespace internal
291 } // namespace v8 294 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698