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

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

Issue 2230953002: Use a custom Struct for stack trace storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 4 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.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 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 1009
1010 1010
1011 void Script::ScriptVerify() { 1011 void Script::ScriptVerify() {
1012 CHECK(IsScript()); 1012 CHECK(IsScript());
1013 VerifyPointer(source()); 1013 VerifyPointer(source());
1014 VerifyPointer(name()); 1014 VerifyPointer(name());
1015 VerifyPointer(wrapper()); 1015 VerifyPointer(wrapper());
1016 VerifyPointer(line_ends()); 1016 VerifyPointer(line_ends());
1017 } 1017 }
1018 1018
1019 void StackTraceFrame::StackTraceFrameVerify() {
1020 CHECK(IsStackTraceFrame());
1021 VerifyPointer(abstract_code());
1022 if (IsWasmFrame()) {
1023 VerifyPointer(wasm_object());
1024 } else {
1025 DCHECK(IsJavaScriptFrame());
1026 VerifyPointer(receiver());
1027 VerifyPointer(function());
1028 }
1029 }
1019 1030
1020 void NormalizedMapCache::NormalizedMapCacheVerify() { 1031 void NormalizedMapCache::NormalizedMapCacheVerify() {
1021 FixedArray::cast(this)->FixedArrayVerify(); 1032 FixedArray::cast(this)->FixedArrayVerify();
1022 if (FLAG_enable_slow_asserts) { 1033 if (FLAG_enable_slow_asserts) {
1023 Isolate* isolate = GetIsolate(); 1034 Isolate* isolate = GetIsolate();
1024 for (int i = 0; i < length(); i++) { 1035 for (int i = 0; i < length(); i++) {
1025 Object* e = FixedArray::get(i); 1036 Object* e = FixedArray::get(i);
1026 if (e->IsMap()) { 1037 if (e->IsMap()) {
1027 Map::cast(e)->DictionaryMapVerify(); 1038 Map::cast(e)->DictionaryMapVerify();
1028 } else { 1039 } else {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1345
1335 // Both are done at the same time. 1346 // Both are done at the same time.
1336 CHECK_EQ(new_it.done(), old_it.done()); 1347 CHECK_EQ(new_it.done(), old_it.done());
1337 } 1348 }
1338 1349
1339 1350
1340 #endif // DEBUG 1351 #endif // DEBUG
1341 1352
1342 } // namespace internal 1353 } // namespace internal
1343 } // namespace v8 1354 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698