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

Unified Diff: src/messages.h

Issue 2164903004: Eagerly format traces in captureStackTrace (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index 164ede114ebde9b68d024d6387c44bc5dd94652c..d4c0001e8bff3607d81791a91c497be3664594f0 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -71,6 +71,11 @@ class CallSite {
uint32_t wasm_func_index_ = static_cast<uint32_t>(-1);
};
+// Formats a textual stack trace from the given structured stack trace.
+// Note that this can call arbitrary JS code through Error.prepareStackTrace.
+MaybeHandle<Object> FormatStackTrace(Isolate* isolate, Handle<JSObject> error,
+ Handle<Object> stack_trace);
+
// Determines how stack trace collection skips frames.
enum FrameSkipMode {
// Unconditionally skips the first frame. Used e.g. when the Error constructor
« no previous file with comments | « src/isolate.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698