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

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

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/objects.h ('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 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 965
966 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { 966 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() {
967 Isolate* isolate = GetIsolate(); 967 Isolate* isolate = GetIsolate();
968 CHECK(IsPromiseResolveThenableJobInfo()); 968 CHECK(IsPromiseResolveThenableJobInfo());
969 CHECK(thenable()->IsJSReceiver()); 969 CHECK(thenable()->IsJSReceiver());
970 CHECK(then()->IsJSReceiver()); 970 CHECK(then()->IsJSReceiver());
971 CHECK(resolve()->IsJSFunction()); 971 CHECK(resolve()->IsJSFunction());
972 CHECK(reject()->IsJSFunction()); 972 CHECK(reject()->IsJSFunction());
973 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); 973 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate));
974 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); 974 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate));
975 CHECK(context()->IsContext());
975 } 976 }
976 977
977 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { 978 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
978 Isolate* isolate = GetIsolate(); 979 Isolate* isolate = GetIsolate();
979 CHECK(IsPromiseReactionJobInfo()); 980 CHECK(IsPromiseReactionJobInfo());
980 CHECK(value()->IsObject()); 981 CHECK(value()->IsObject());
981 CHECK(tasks()->IsJSArray() || tasks()->IsCallable()); 982 CHECK(tasks()->IsJSArray() || tasks()->IsCallable());
982 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate)); 983 CHECK(deferred()->IsJSObject() || deferred()->IsUndefined(isolate));
983 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate)); 984 CHECK(debug_id()->IsNumber() || debug_id()->IsUndefined(isolate));
984 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate)); 985 CHECK(debug_name()->IsString() || debug_name()->IsUndefined(isolate));
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1483
1483 // Both are done at the same time. 1484 // Both are done at the same time.
1484 CHECK_EQ(new_it.done(), old_it.done()); 1485 CHECK_EQ(new_it.done(), old_it.done());
1485 } 1486 }
1486 1487
1487 1488
1488 #endif // DEBUG 1489 #endif // DEBUG
1489 1490
1490 } // namespace internal 1491 } // namespace internal
1491 } // namespace v8 1492 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698