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

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

Issue 2789073002: [inspector] store stack frame in struct instead of JSObject (Closed)
Patch Set: gcmole should be happy Created 3 years, 8 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/assembler-inl.h" 7 #include "src/assembler-inl.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/disasm.h" 9 #include "src/disasm.h"
10 #include "src/disassembler.h" 10 #include "src/disassembler.h"
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 VerifyPointer(shared()); 1295 VerifyPointer(shared());
1296 VerifyPointer(debug_bytecode_array()); 1296 VerifyPointer(debug_bytecode_array());
1297 VerifyPointer(break_points()); 1297 VerifyPointer(break_points());
1298 } 1298 }
1299 1299
1300 1300
1301 void BreakPointInfo::BreakPointInfoVerify() { 1301 void BreakPointInfo::BreakPointInfoVerify() {
1302 CHECK(IsBreakPointInfo()); 1302 CHECK(IsBreakPointInfo());
1303 VerifyPointer(break_point_objects()); 1303 VerifyPointer(break_point_objects());
1304 } 1304 }
1305
1306 void StackFrameInfo::StackFrameInfoVerify() {
1307 CHECK(IsStackFrameInfo());
1308 VerifyPointer(script_name());
1309 VerifyPointer(script_name_or_source_url());
1310 VerifyPointer(function_name());
1311 }
1305 #endif // VERIFY_HEAP 1312 #endif // VERIFY_HEAP
1306 1313
1307 #ifdef DEBUG 1314 #ifdef DEBUG
1308 1315
1309 void JSObject::IncrementSpillStatistics(SpillInformation* info) { 1316 void JSObject::IncrementSpillStatistics(SpillInformation* info) {
1310 info->number_of_objects_++; 1317 info->number_of_objects_++;
1311 // Named properties 1318 // Named properties
1312 if (HasFastProperties()) { 1319 if (HasFastProperties()) {
1313 info->number_of_objects_with_fast_properties_++; 1320 info->number_of_objects_with_fast_properties_++;
1314 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex(); 1321 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 1598
1592 // Both are done at the same time. 1599 // Both are done at the same time.
1593 CHECK_EQ(new_it.done(), old_it.done()); 1600 CHECK_EQ(new_it.done(), old_it.done());
1594 } 1601 }
1595 1602
1596 1603
1597 #endif // DEBUG 1604 #endif // DEBUG
1598 1605
1599 } // namespace internal 1606 } // namespace internal
1600 } // namespace v8 1607 } // 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