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

Side by Side Diff: src/objects.h

Issue 2628173005: [inspector] merged type and name of async task event (Closed)
Patch Set: addressed comments 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/js/macros.py ('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 6543 matching lines...) Expand 10 before | Expand all | Expand 10 after
6554 6554
6555 // A container struct to hold state required for PromiseResolveThenableJob. 6555 // A container struct to hold state required for PromiseResolveThenableJob.
6556 class PromiseResolveThenableJobInfo : public Struct { 6556 class PromiseResolveThenableJobInfo : public Struct {
6557 public: 6557 public:
6558 DECL_ACCESSORS(thenable, JSReceiver) 6558 DECL_ACCESSORS(thenable, JSReceiver)
6559 DECL_ACCESSORS(then, JSReceiver) 6559 DECL_ACCESSORS(then, JSReceiver)
6560 DECL_ACCESSORS(resolve, JSFunction) 6560 DECL_ACCESSORS(resolve, JSFunction)
6561 DECL_ACCESSORS(reject, JSFunction) 6561 DECL_ACCESSORS(reject, JSFunction)
6562 6562
6563 DECL_INT_ACCESSORS(debug_id) 6563 DECL_INT_ACCESSORS(debug_id)
6564 DECL_INT_ACCESSORS(debug_name)
6565 6564
6566 DECL_ACCESSORS(context, Context) 6565 DECL_ACCESSORS(context, Context)
6567 6566
6568 static const int kThenableOffset = Struct::kHeaderSize; 6567 static const int kThenableOffset = Struct::kHeaderSize;
6569 static const int kThenOffset = kThenableOffset + kPointerSize; 6568 static const int kThenOffset = kThenableOffset + kPointerSize;
6570 static const int kResolveOffset = kThenOffset + kPointerSize; 6569 static const int kResolveOffset = kThenOffset + kPointerSize;
6571 static const int kRejectOffset = kResolveOffset + kPointerSize; 6570 static const int kRejectOffset = kResolveOffset + kPointerSize;
6572 static const int kDebugIdOffset = kRejectOffset + kPointerSize; 6571 static const int kDebugIdOffset = kRejectOffset + kPointerSize;
6573 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; 6572 static const int kContextOffset = kDebugIdOffset + kPointerSize;
6574 static const int kContextOffset = kDebugNameOffset + kPointerSize;
6575 static const int kSize = kContextOffset + kPointerSize; 6573 static const int kSize = kContextOffset + kPointerSize;
6576 6574
6577 DECLARE_CAST(PromiseResolveThenableJobInfo) 6575 DECLARE_CAST(PromiseResolveThenableJobInfo)
6578 DECLARE_PRINTER(PromiseResolveThenableJobInfo) 6576 DECLARE_PRINTER(PromiseResolveThenableJobInfo)
6579 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) 6577 DECLARE_VERIFIER(PromiseResolveThenableJobInfo)
6580 6578
6581 private: 6579 private:
6582 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); 6580 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo);
6583 }; 6581 };
6584 6582
6585 class JSPromise; 6583 class JSPromise;
6586 6584
6587 // Struct to hold state required for PromiseReactionJob. 6585 // Struct to hold state required for PromiseReactionJob.
6588 class PromiseReactionJobInfo : public Struct { 6586 class PromiseReactionJobInfo : public Struct {
6589 public: 6587 public:
6590 DECL_ACCESSORS(value, Object) 6588 DECL_ACCESSORS(value, Object)
6591 DECL_ACCESSORS(tasks, Object) 6589 DECL_ACCESSORS(tasks, Object)
6592 6590
6593 // Check comment in JSPromise for information on what state these 6591 // Check comment in JSPromise for information on what state these
6594 // deferred fields could be in. 6592 // deferred fields could be in.
6595 DECL_ACCESSORS(deferred_promise, Object) 6593 DECL_ACCESSORS(deferred_promise, Object)
6596 DECL_ACCESSORS(deferred_on_resolve, Object) 6594 DECL_ACCESSORS(deferred_on_resolve, Object)
6597 DECL_ACCESSORS(deferred_on_reject, Object) 6595 DECL_ACCESSORS(deferred_on_reject, Object)
6598 6596
6599 DECL_INT_ACCESSORS(debug_id) 6597 DECL_INT_ACCESSORS(debug_id)
6600 DECL_INT_ACCESSORS(debug_name)
6601 6598
6602 DECL_ACCESSORS(context, Context) 6599 DECL_ACCESSORS(context, Context)
6603 6600
6604 static const int kValueOffset = Struct::kHeaderSize; 6601 static const int kValueOffset = Struct::kHeaderSize;
6605 static const int kTasksOffset = kValueOffset + kPointerSize; 6602 static const int kTasksOffset = kValueOffset + kPointerSize;
6606 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize; 6603 static const int kDeferredPromiseOffset = kTasksOffset + kPointerSize;
6607 static const int kDeferredOnResolveOffset = 6604 static const int kDeferredOnResolveOffset =
6608 kDeferredPromiseOffset + kPointerSize; 6605 kDeferredPromiseOffset + kPointerSize;
6609 static const int kDeferredOnRejectOffset = 6606 static const int kDeferredOnRejectOffset =
6610 kDeferredOnResolveOffset + kPointerSize; 6607 kDeferredOnResolveOffset + kPointerSize;
6611 static const int kDebugIdOffset = kDeferredOnRejectOffset + kPointerSize; 6608 static const int kDebugIdOffset = kDeferredOnRejectOffset + kPointerSize;
6612 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; 6609 static const int kContextOffset = kDebugIdOffset + kPointerSize;
6613 static const int kContextOffset = kDebugNameOffset + kPointerSize;
6614 static const int kSize = kContextOffset + kPointerSize; 6610 static const int kSize = kContextOffset + kPointerSize;
6615 6611
6616 DECLARE_CAST(PromiseReactionJobInfo) 6612 DECLARE_CAST(PromiseReactionJobInfo)
6617 DECLARE_PRINTER(PromiseReactionJobInfo) 6613 DECLARE_PRINTER(PromiseReactionJobInfo)
6618 DECLARE_VERIFIER(PromiseReactionJobInfo) 6614 DECLARE_VERIFIER(PromiseReactionJobInfo)
6619 6615
6620 private: 6616 private:
6621 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo); 6617 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseReactionJobInfo);
6622 }; 6618 };
6623 6619
(...skipping 5072 matching lines...) Expand 10 before | Expand all | Expand 10 after
11696 } 11692 }
11697 }; 11693 };
11698 11694
11699 11695
11700 } // NOLINT, false-positive due to second-order macros. 11696 } // NOLINT, false-positive due to second-order macros.
11701 } // NOLINT, false-positive due to second-order macros. 11697 } // NOLINT, false-positive due to second-order macros.
11702 11698
11703 #include "src/objects/object-macros-undef.h" 11699 #include "src/objects/object-macros-undef.h"
11704 11700
11705 #endif // V8_OBJECTS_H_ 11701 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/macros.py ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698