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

Unified Diff: src/objects.h

Issue 2581503003: [promisehook] Store promise in PromiseReactionJob (Closed)
Patch Set: rebase correctly Created 4 years 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 8d05411cd1beb6fe96482ebb2e20fcae2b9fa8b3..46eee845747ca79fc0bdeb05e160452de2c7ef67 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6893,9 +6893,12 @@ class PromiseResolveThenableJobInfo : public Struct {
DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo);
};
+class JSPromise;
+
// Struct to hold state required for PromiseReactionJob.
class PromiseReactionJobInfo : public Struct {
public:
+ DECL_ACCESSORS(promise, JSPromise)
DECL_ACCESSORS(value, Object)
DECL_ACCESSORS(tasks, Object)
DECL_ACCESSORS(deferred, Object)
@@ -6903,7 +6906,8 @@ class PromiseReactionJobInfo : public Struct {
DECL_ACCESSORS(debug_name, Object)
DECL_ACCESSORS(context, Context)
- static const int kValueOffset = Struct::kHeaderSize;
+ static const int kPromiseOffset = Struct::kHeaderSize;
+ static const int kValueOffset = kPromiseOffset + kPointerSize;
static const int kTasksOffset = kValueOffset + kPointerSize;
static const int kDeferredOffset = kTasksOffset + kPointerSize;
static const int kDebugIdOffset = kDeferredOffset + kPointerSize;
« src/builtins/builtins-promise.cc ('K') | « src/isolate.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698