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

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 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1312
1313 void StackTraceInfo::StackTraceInfoVerify() { 1313 void StackTraceInfo::StackTraceInfoVerify() {
1314 CHECK(IsStackTraceInfo()); 1314 CHECK(IsStackTraceInfo());
1315 VerifyPointer(frames()); 1315 VerifyPointer(frames());
1316 } 1316 }
1317
1318 void SourcePositionTableWithFrameCache::
1319 SourcePositionTableWithFrameCacheVerify() {
1320 CHECK(IsSourcePositionTableWithFrameCache());
1321 VerifyPointer(source_position_table());
1322 VerifyPointer(stack_frame_cache());
1323 }
1317 #endif // VERIFY_HEAP 1324 #endif // VERIFY_HEAP
1318 1325
1319 #ifdef DEBUG 1326 #ifdef DEBUG
1320 1327
1321 void JSObject::IncrementSpillStatistics(SpillInformation* info) { 1328 void JSObject::IncrementSpillStatistics(SpillInformation* info) {
1322 info->number_of_objects_++; 1329 info->number_of_objects_++;
1323 // Named properties 1330 // Named properties
1324 if (HasFastProperties()) { 1331 if (HasFastProperties()) {
1325 info->number_of_objects_with_fast_properties_++; 1332 info->number_of_objects_with_fast_properties_++;
1326 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex(); 1333 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 1610
1604 // Both are done at the same time. 1611 // Both are done at the same time.
1605 CHECK_EQ(new_it.done(), old_it.done()); 1612 CHECK_EQ(new_it.done(), old_it.done());
1606 } 1613 }
1607 1614
1608 1615
1609 #endif // DEBUG 1616 #endif // DEBUG
1610 1617
1611 } // namespace internal 1618 } // namespace internal
1612 } // namespace v8 1619 } // namespace v8
OLDNEW
« src/api.cc ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698