OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |