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

Side by Side Diff: src/objects.h

Issue 2362503003: [promises] PromiseResolveThenableJob: change then to be a JSReceiver (Closed)
Patch Set: Created 4 years, 3 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-inl.h » ('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 6644 matching lines...) Expand 10 before | Expand all | Expand 10 after
6655 inline void InitializeBody(int object_size); 6655 inline void InitializeBody(int object_size);
6656 DECLARE_CAST(Struct) 6656 DECLARE_CAST(Struct)
6657 }; 6657 };
6658 6658
6659 // A container struct to hold state required for 6659 // A container struct to hold state required for
6660 // PromiseResolveThenableJob. {before, after}_debug_event could 6660 // PromiseResolveThenableJob. {before, after}_debug_event could
6661 // potentially be undefined if the debugger is turned off. 6661 // potentially be undefined if the debugger is turned off.
6662 class PromiseContainer : public Struct { 6662 class PromiseContainer : public Struct {
6663 public: 6663 public:
6664 DECL_ACCESSORS(thenable, JSReceiver) 6664 DECL_ACCESSORS(thenable, JSReceiver)
6665 DECL_ACCESSORS(then, JSFunction) 6665 DECL_ACCESSORS(then, JSReceiver)
6666 DECL_ACCESSORS(resolve, JSFunction) 6666 DECL_ACCESSORS(resolve, JSFunction)
6667 DECL_ACCESSORS(reject, JSFunction) 6667 DECL_ACCESSORS(reject, JSFunction)
6668 DECL_ACCESSORS(before_debug_event, Object) 6668 DECL_ACCESSORS(before_debug_event, Object)
6669 DECL_ACCESSORS(after_debug_event, Object) 6669 DECL_ACCESSORS(after_debug_event, Object)
6670 6670
6671 static const int kThenableOffset = Struct::kHeaderSize; 6671 static const int kThenableOffset = Struct::kHeaderSize;
6672 static const int kThenOffset = kThenableOffset + kPointerSize; 6672 static const int kThenOffset = kThenableOffset + kPointerSize;
6673 static const int kResolveOffset = kThenOffset + kPointerSize; 6673 static const int kResolveOffset = kThenOffset + kPointerSize;
6674 static const int kRejectOffset = kResolveOffset + kPointerSize; 6674 static const int kRejectOffset = kResolveOffset + kPointerSize;
6675 static const int kBeforeDebugEventOffset = kRejectOffset + kPointerSize; 6675 static const int kBeforeDebugEventOffset = kRejectOffset + kPointerSize;
(...skipping 4722 matching lines...) Expand 10 before | Expand all | Expand 10 after
11398 } 11398 }
11399 return value; 11399 return value;
11400 } 11400 }
11401 }; 11401 };
11402 11402
11403 11403
11404 } // NOLINT, false-positive due to second-order macros. 11404 } // NOLINT, false-positive due to second-order macros.
11405 } // NOLINT, false-positive due to second-order macros. 11405 } // NOLINT, false-positive due to second-order macros.
11406 11406
11407 #endif // V8_OBJECTS_H_ 11407 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698