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

Unified Diff: src/messages.h

Issue 2161953003: Remove stack overflow boilerplate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Satisfy older mips/arm gcc versions 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/js/messages.js ('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 aeba83ce72703517adb020774653280680b04c86..164ede114ebde9b68d024d6387c44bc5dd94652c 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -71,6 +71,21 @@ class CallSite {
uint32_t wasm_func_index_ = static_cast<uint32_t>(-1);
};
+// Determines how stack trace collection skips frames.
+enum FrameSkipMode {
+ // Unconditionally skips the first frame. Used e.g. when the Error constructor
+ // is called, in which case the first frame is always a BUILTIN_EXIT frame.
+ SKIP_FIRST,
+ // Skip all frames until a specified caller function is seen.
+ SKIP_UNTIL_SEEN,
+ SKIP_NONE,
+};
+
+MaybeHandle<Object> ConstructError(Isolate* isolate, Handle<JSFunction> target,
+ Handle<Object> new_target,
+ Handle<Object> message, FrameSkipMode mode,
+ bool suppress_detailed_trace);
+
#define MESSAGE_TEMPLATES(T) \
/* Error */ \
T(None, "") \
« no previous file with comments | « src/js/messages.js ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698