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

Side by Side Diff: src/objects.h

Issue 2487053002: [promises] Remove one runtime call to create_resolving_functions (Closed)
Patch Set: add dcheck Created 4 years, 1 month 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/promise.js ('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 6794 matching lines...) Expand 10 before | Expand all | Expand 10 after
6805 6805
6806 // A container struct to hold state required for PromiseResolveThenableJob. 6806 // A container struct to hold state required for PromiseResolveThenableJob.
6807 class PromiseResolveThenableJobInfo : public Struct { 6807 class PromiseResolveThenableJobInfo : public Struct {
6808 public: 6808 public:
6809 DECL_ACCESSORS(thenable, JSReceiver) 6809 DECL_ACCESSORS(thenable, JSReceiver)
6810 DECL_ACCESSORS(then, JSReceiver) 6810 DECL_ACCESSORS(then, JSReceiver)
6811 DECL_ACCESSORS(resolve, JSFunction) 6811 DECL_ACCESSORS(resolve, JSFunction)
6812 DECL_ACCESSORS(reject, JSFunction) 6812 DECL_ACCESSORS(reject, JSFunction)
6813 DECL_ACCESSORS(debug_id, Object) 6813 DECL_ACCESSORS(debug_id, Object)
6814 DECL_ACCESSORS(debug_name, Object) 6814 DECL_ACCESSORS(debug_name, Object)
6815 DECL_ACCESSORS(context, Context)
6815 6816
6816 static const int kThenableOffset = Struct::kHeaderSize; 6817 static const int kThenableOffset = Struct::kHeaderSize;
6817 static const int kThenOffset = kThenableOffset + kPointerSize; 6818 static const int kThenOffset = kThenableOffset + kPointerSize;
6818 static const int kResolveOffset = kThenOffset + kPointerSize; 6819 static const int kResolveOffset = kThenOffset + kPointerSize;
6819 static const int kRejectOffset = kResolveOffset + kPointerSize; 6820 static const int kRejectOffset = kResolveOffset + kPointerSize;
6820 static const int kDebugIdOffset = kRejectOffset + kPointerSize; 6821 static const int kDebugIdOffset = kRejectOffset + kPointerSize;
6821 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize; 6822 static const int kDebugNameOffset = kDebugIdOffset + kPointerSize;
6822 static const int kSize = kDebugNameOffset + kPointerSize; 6823 static const int kContextOffset = kDebugNameOffset + kPointerSize;
6824 static const int kSize = kContextOffset + kPointerSize;
6823 6825
6824 DECLARE_CAST(PromiseResolveThenableJobInfo) 6826 DECLARE_CAST(PromiseResolveThenableJobInfo)
6825 DECLARE_PRINTER(PromiseResolveThenableJobInfo) 6827 DECLARE_PRINTER(PromiseResolveThenableJobInfo)
6826 DECLARE_VERIFIER(PromiseResolveThenableJobInfo) 6828 DECLARE_VERIFIER(PromiseResolveThenableJobInfo)
6827 6829
6828 private: 6830 private:
6829 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo); 6831 DISALLOW_IMPLICIT_CONSTRUCTORS(PromiseResolveThenableJobInfo);
6830 }; 6832 };
6831 6833
6832 // Struct to hold state required for PromiseReactionJob. 6834 // Struct to hold state required for PromiseReactionJob.
(...skipping 4988 matching lines...) Expand 10 before | Expand all | Expand 10 after
11821 } 11823 }
11822 return value; 11824 return value;
11823 } 11825 }
11824 }; 11826 };
11825 11827
11826 11828
11827 } // NOLINT, false-positive due to second-order macros. 11829 } // NOLINT, false-positive due to second-order macros.
11828 } // NOLINT, false-positive due to second-order macros. 11830 } // NOLINT, false-positive due to second-order macros.
11829 11831
11830 #endif // V8_OBJECTS_H_ 11832 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/promise.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698