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

Side by Side Diff: src/objects.h

Issue 2633443002: [promisehook] Pass deferred promise to Before/After callback (Closed)
Patch Set: Remove adaptor Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 6588 matching lines...) Expand 10 before | Expand all | Expand 10 after
6599 6599
6600 private: 6600 private:
6601 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); 6601 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo);
6602 }; 6602 };
6603 6603
6604 class JSPromise; 6604 class JSPromise;
6605 6605
6606 // Struct to hold state required for PromiseReactionJob. 6606 // Struct to hold state required for PromiseReactionJob.
6607 class PromiseReactionJobInfo : public Struct { 6607 class PromiseReactionJobInfo : public Struct {
6608 public: 6608 public:
6609 DECL_ACCESSORS(promise, JSPromise)
6610 DECL_ACCESSORS(value, Object) 6609 DECL_ACCESSORS(value, Object)
6611 DECL_ACCESSORS(tasks, Object) 6610 DECL_ACCESSORS(tasks, Object)
6612 6611
6613 // Check comment in JSPromise for information on what state these 6612 // Check comment in JSPromise for information on what state these
6614 // deferred fields could be in. 6613 // deferred fields could be in.
6615 DECL_ACCESSORS(deferred_promise, Object) 6614 DECL_ACCESSORS(deferred_promise, Object)
6616 DECL_ACCESSORS(deferred_on_resolve, Object) 6615 DECL_ACCESSORS(deferred_on_resolve, Object)
6617 DECL_ACCESSORS(deferred_on_reject, Object) 6616 DECL_ACCESSORS(deferred_on_reject, Object)
6618 6617
6619 DECL_INT_ACCESSORS(debug_id) 6618 DECL_INT_ACCESSORS(debug_id)
6620 DECL_INT_ACCESSORS(debug_name) 6619 DECL_INT_ACCESSORS(debug_name)
6621 6620
6622 DECL_ACCESSORS(context, Context) 6621 DECL_ACCESSORS(context, Context)
6623 6622
6624 static const int kPromiseOffset = Struct::kHeaderSize; 6623 static const int kValueOffset = Struct::kHeaderSize;
6625 static const int kValueOffset = kPromiseOffset + kPointerSize;
6626 static const int kTasksOffset = kValueOffset + kPointerSize; 6624 static const int kTasksOffset = kValueOffset + kPointerSize;
6627 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize; 6625 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize;
6628 static const int kDeferredOnResolveOffset = 6626 static const int kDeferredOnResolveOffset =
6629 kDeferredPromiseOffset + kPointerSize; 6627 kDeferredPromiseOffset + kPointerSize;
6630 static const int kDeferredOnRejectOffset = 6628 static const int kDeferredOnRejectOffset =
6631 kDeferredOnResolveOffset + kPointerSize; 6629 kDeferredOnResolveOffset + kPointerSize;
6632 static const int kDebugIdOffset = kDeferredOnRejectOffset + kPointerSize; 6630 static const int kDebugIdOffset = kDeferredOnRejectOffset + kPointerSize;
6633 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; 6631 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize;
6634 static const int kContextOffset = kDebugNameOffset + kPointerSize; 6632 static const int kContextOffset = kDebugNameOffset + kPointerSize;
6635 static const int kSize = kContextOffset + kPointerSize; 6633 static const int kSize = kContextOffset + kPointerSize;
(...skipping 5112 matching lines...) Expand 10 before | Expand all | Expand 10 after
11748 } 11746 }
11749 }; 11747 };
11750 11748
11751 11749
11752 } // NOLINT, false-positive due to second-order macros. 11750 } // NOLINT, false-positive due to second-order macros.
11753 } // NOLINT, false-positive due to second-order macros. 11751 } // NOLINT, false-positive due to second-order macros.
11754 11752
11755 #include "src/objects/object-macros-undef.h" 11753 #include "src/objects/object-macros-undef.h"
11756 11754
11757 #endif // V8_OBJECTS_H_ 11755 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698