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

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

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: rebased 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
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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 CHECK(IsBreakPointInfo()); 1302 CHECK(IsBreakPointInfo());
1303 VerifyPointer(break_point_objects()); 1303 VerifyPointer(break_point_objects());
1304 } 1304 }
1305 1305
1306 void StackFrameInfo::StackFrameInfoVerify() { 1306 void StackFrameInfo::StackFrameInfoVerify() {
1307 CHECK(IsStackFrameInfo()); 1307 CHECK(IsStackFrameInfo());
1308 VerifyPointer(script_name()); 1308 VerifyPointer(script_name());
1309 VerifyPointer(script_name_or_source_url()); 1309 VerifyPointer(script_name_or_source_url());
1310 VerifyPointer(function_name()); 1310 VerifyPointer(function_name());
1311 } 1311 }
1312
1313 void SourcePositionTableWithFrameCache::
1314 SourcePositionTableWithFrameCacheVerify() {
1315 CHECK(IsSourcePositionTableWithFrameCache());
1316 VerifyPointer(source_position_table());
1317 VerifyPointer(stack_frame_cache());
1318 }
1312 #endif // VERIFY_HEAP 1319 #endif // VERIFY_HEAP
1313 1320
1314 #ifdef DEBUG 1321 #ifdef DEBUG
1315 1322
1316 void JSObject::IncrementSpillStatistics(SpillInformation* info) { 1323 void JSObject::IncrementSpillStatistics(SpillInformation* info) {
1317 info->number_of_objects_++; 1324 info->number_of_objects_++;
1318 // Named properties 1325 // Named properties
1319 if (HasFastProperties()) { 1326 if (HasFastProperties()) {
1320 info->number_of_objects_with_fast_properties_++; 1327 info->number_of_objects_with_fast_properties_++;
1321 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex(); 1328 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 1605
1599 // Both are done at the same time. 1606 // Both are done at the same time.
1600 CHECK_EQ(new_it.done(), old_it.done()); 1607 CHECK_EQ(new_it.done(), old_it.done());
1601 } 1608 }
1602 1609
1603 1610
1604 #endif // DEBUG 1611 #endif // DEBUG
1605 1612
1606 } // namespace internal 1613 } // namespace internal
1607 } // namespace v8 1614 } // namespace v8
OLDNEW
« include/v8.h ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698