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

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

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/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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 value()->ObjectVerify(); 1030 value()->ObjectVerify();
1031 } 1031 }
1032 1032
1033 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() { 1033 void PromiseResolveThenableJobInfo::PromiseResolveThenableJobInfoVerify() {
1034 CHECK(IsPromiseResolveThenableJobInfo()); 1034 CHECK(IsPromiseResolveThenableJobInfo());
1035 CHECK(thenable()->IsJSReceiver()); 1035 CHECK(thenable()->IsJSReceiver());
1036 CHECK(then()->IsJSReceiver()); 1036 CHECK(then()->IsJSReceiver());
1037 CHECK(resolve()->IsJSFunction()); 1037 CHECK(resolve()->IsJSFunction());
1038 CHECK(reject()->IsJSFunction()); 1038 CHECK(reject()->IsJSFunction());
1039 VerifySmiField(kDebugIdOffset); 1039 VerifySmiField(kDebugIdOffset);
1040 VerifySmiField(kDebugNameOffset);
1041 CHECK(context()->IsContext()); 1040 CHECK(context()->IsContext());
1042 } 1041 }
1043 1042
1044 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() { 1043 void PromiseReactionJobInfo::PromiseReactionJobInfoVerify() {
1045 Isolate* isolate = GetIsolate(); 1044 Isolate* isolate = GetIsolate();
1046 CHECK(IsPromiseReactionJobInfo()); 1045 CHECK(IsPromiseReactionJobInfo());
1047 CHECK(value()->IsObject()); 1046 CHECK(value()->IsObject());
1048 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable()); 1047 CHECK(tasks()->IsFixedArray() || tasks()->IsCallable());
1049 CHECK(deferred_promise()->IsUndefined(isolate) || 1048 CHECK(deferred_promise()->IsUndefined(isolate) ||
1050 deferred_promise()->IsJSReceiver() || 1049 deferred_promise()->IsJSReceiver() ||
1051 deferred_promise()->IsFixedArray()); 1050 deferred_promise()->IsFixedArray());
1052 CHECK(deferred_on_resolve()->IsUndefined(isolate) || 1051 CHECK(deferred_on_resolve()->IsUndefined(isolate) ||
1053 deferred_on_resolve()->IsCallable() || 1052 deferred_on_resolve()->IsCallable() ||
1054 deferred_on_resolve()->IsFixedArray()); 1053 deferred_on_resolve()->IsFixedArray());
1055 CHECK(deferred_on_reject()->IsUndefined(isolate) || 1054 CHECK(deferred_on_reject()->IsUndefined(isolate) ||
1056 deferred_on_reject()->IsCallable() || 1055 deferred_on_reject()->IsCallable() ||
1057 deferred_on_reject()->IsFixedArray()); 1056 deferred_on_reject()->IsFixedArray());
1058 VerifySmiField(kDebugIdOffset); 1057 VerifySmiField(kDebugIdOffset);
1059 VerifySmiField(kDebugNameOffset);
1060 CHECK(context()->IsContext()); 1058 CHECK(context()->IsContext());
1061 } 1059 }
1062 1060
1063 void JSModuleNamespace::JSModuleNamespaceVerify() { 1061 void JSModuleNamespace::JSModuleNamespaceVerify() {
1064 CHECK(IsJSModuleNamespace()); 1062 CHECK(IsJSModuleNamespace());
1065 VerifyPointer(module()); 1063 VerifyPointer(module());
1066 } 1064 }
1067 1065
1068 void ModuleInfoEntry::ModuleInfoEntryVerify() { 1066 void ModuleInfoEntry::ModuleInfoEntryVerify() {
1069 Isolate* isolate = GetIsolate(); 1067 Isolate* isolate = GetIsolate();
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 1556
1559 // Both are done at the same time. 1557 // Both are done at the same time.
1560 CHECK_EQ(new_it.done(), old_it.done()); 1558 CHECK_EQ(new_it.done(), old_it.done());
1561 } 1559 }
1562 1560
1563 1561
1564 #endif // DEBUG 1562 #endif // DEBUG
1565 1563
1566 } // namespace internal 1564 } // namespace internal
1567 } // namespace v8 1565 } // 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