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

Unified Diff: src/isolate.h

Issue 2230953002: Use a custom Struct for stack trace storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 4 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/heap-symbols.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 9de1aebb01824fe53ad23ea7475bf7ec9e0fdca5..59054a71a20232222fb7f212025ae78fbb6f285f 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1469,6 +1469,21 @@ class Isolate {
#undef FIELD_ACCESSOR
#undef THREAD_LOCAL_TOP_ACCESSOR
+// Constants for stack trace frames encoded into a fixed array.
+class EncodedStackTraceFrame : public AllStatic {
+ public:
+ static const int kWasmObjectOffset = 0;
+ static const int kWasmFunctionIndexOffset = 1;
+
+ static const int kReceiverOffset = 0;
+ static const int kFunctionOffset = 1;
+
+ static const int kCodeOffset = 2;
+ static const int kOffsetOffset = 3;
+ static const int kFlagsOffset = 4;
+
+ static const int kElementsPerFrame = 5;
+};
class PromiseOnStack {
public:
« no previous file with comments | « src/heap-symbols.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698