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

Side by Side Diff: src/objects-debug.cc

Issue 2695593002: [promises] cleanup default promise handlers (Closed)
Patch Set: remove unused var Created 3 years, 10 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/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 CHECK(deferred_promise()->IsUndefined(isolate) || 915 CHECK(deferred_promise()->IsUndefined(isolate) ||
916 deferred_promise()->IsJSReceiver() || 916 deferred_promise()->IsJSReceiver() ||
917 deferred_promise()->IsFixedArray()); 917 deferred_promise()->IsFixedArray());
918 CHECK(deferred_on_resolve()->IsUndefined(isolate) || 918 CHECK(deferred_on_resolve()->IsUndefined(isolate) ||
919 deferred_on_resolve()->IsCallable() || 919 deferred_on_resolve()->IsCallable() ||
920 deferred_on_resolve()->IsFixedArray()); 920 deferred_on_resolve()->IsFixedArray());
921 CHECK(deferred_on_reject()->IsUndefined(isolate) || 921 CHECK(deferred_on_reject()->IsUndefined(isolate) ||
922 deferred_on_reject()->IsCallable() || 922 deferred_on_reject()->IsCallable() ||
923 deferred_on_reject()->IsFixedArray()); 923 deferred_on_reject()->IsFixedArray());
924 CHECK(fulfill_reactions()->IsUndefined(isolate) || 924 CHECK(fulfill_reactions()->IsUndefined(isolate) ||
925 fulfill_reactions()->IsCallable() || 925 fulfill_reactions()->IsCallable() || fulfill_reactions()->IsSymbol() ||
926 fulfill_reactions()->IsFixedArray()); 926 fulfill_reactions()->IsFixedArray());
927 CHECK(reject_reactions()->IsUndefined(isolate) || 927 CHECK(reject_reactions()->IsUndefined(isolate) ||
928 reject_reactions()->IsCallable() || reject_reactions()->IsFixedArray()); 928 reject_reactions()->IsSymbol() || reject_reactions()->IsCallable() ||
929 reject_reactions()->IsFixedArray());
929 } 930 }
930 931
931 void JSRegExp::JSRegExpVerify() { 932 void JSRegExp::JSRegExpVerify() {
932 JSObjectVerify(); 933 JSObjectVerify();
933 Isolate* isolate = GetIsolate(); 934 Isolate* isolate = GetIsolate();
934 CHECK(data()->IsUndefined(isolate) || data()->IsFixedArray()); 935 CHECK(data()->IsUndefined(isolate) || data()->IsFixedArray());
935 switch (TypeTag()) { 936 switch (TypeTag()) {
936 case JSRegExp::ATOM: { 937 case JSRegExp::ATOM: {
937 FixedArray* arr = FixedArray::cast(data()); 938 FixedArray* arr = FixedArray::cast(data());
938 CHECK(arr->get(JSRegExp::kAtomPatternIndex)->IsString()); 939 CHECK(arr->get(JSRegExp::kAtomPatternIndex)->IsString());
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 CHECK(then()->IsJSReceiver()); 1045 CHECK(then()->IsJSReceiver());
1045 CHECK(resolve()->IsJSFunction()); 1046 CHECK(resolve()->IsJSFunction());
1046 CHECK(reject()->IsJSFunction()); 1047 CHECK(reject()->IsJSFunction());
1047 CHECK(context()->IsContext()); 1048 CHECK(context()->IsContext());
1048 } 1049 }
1049 1050
1050 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { 1051 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
1051 Isolate* isolate = GetIsolate(); 1052 Isolate* isolate = GetIsolate();
1052 CHECK(IsPromiseReactionJobInfo()); 1053 CHECK(IsPromiseReactionJobInfo());
1053 CHECK(value()->IsObject()); 1054 CHECK(value()->IsObject());
1054 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); 1055 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable() ||
1056 tasks()->IsSymbol());
1055 CHECK(deferred_promise()->IsUndefined(isolate) || 1057 CHECK(deferred_promise()->IsUndefined(isolate) ||
1056 deferred_promise()->IsJSReceiver() || 1058 deferred_promise()->IsJSReceiver() ||
1057 deferred_promise()->IsFixedArray()); 1059 deferred_promise()->IsFixedArray());
1058 CHECK(deferred_on_resolve()->IsUndefined(isolate) || 1060 CHECK(deferred_on_resolve()->IsUndefined(isolate) ||
1059 deferred_on_resolve()->IsCallable() || 1061 deferred_on_resolve()->IsCallable() ||
1060 deferred_on_resolve()->IsFixedArray()); 1062 deferred_on_resolve()->IsFixedArray());
1061 CHECK(deferred_on_reject()->IsUndefined(isolate) || 1063 CHECK(deferred_on_reject()->IsUndefined(isolate) ||
1062 deferred_on_reject()->IsCallable() || 1064 deferred_on_reject()->IsCallable() ||
1063 deferred_on_reject()->IsFixedArray()); 1065 deferred_on_reject()->IsFixedArray());
1064 CHECK(context()->IsContext()); 1066 CHECK(context()->IsContext());
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1564
1563 // Both are done at the same time. 1565 // Both are done at the same time.
1564 CHECK_EQ(new_it.done(), old_it.done()); 1566 CHECK_EQ(new_it.done(), old_it.done());
1565 } 1567 }
1566 1568
1567 1569
1568 #endif // DEBUG 1570 #endif // DEBUG
1569 1571
1570 } // namespace internal 1572 } // namespace internal
1571 } // namespace v8 1573 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698