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

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

Issue 149290: Add ENABLE_DEBUGGER_SUPPPORT around 4 functions, set complation cache generat... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/compilation-cache.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 PrintF("\n - column_offset: "); 942 PrintF("\n - column_offset: ");
943 column_offset()->ShortPrint(); 943 column_offset()->ShortPrint();
944 PrintF("\n - type: "); 944 PrintF("\n - type: ");
945 type()->ShortPrint(); 945 type()->ShortPrint();
946 PrintF("\n - id: "); 946 PrintF("\n - id: ");
947 id()->ShortPrint(); 947 id()->ShortPrint();
948 PrintF("\n"); 948 PrintF("\n");
949 } 949 }
950 950
951 951
952 #ifdef ENABLE_DEBUGGER_SUPPORT
952 void DebugInfo::DebugInfoVerify() { 953 void DebugInfo::DebugInfoVerify() {
953 CHECK(IsDebugInfo()); 954 CHECK(IsDebugInfo());
954 VerifyPointer(shared()); 955 VerifyPointer(shared());
955 VerifyPointer(original_code()); 956 VerifyPointer(original_code());
956 VerifyPointer(code()); 957 VerifyPointer(code());
957 VerifyPointer(break_points()); 958 VerifyPointer(break_points());
958 } 959 }
959 960
960 961
961 void DebugInfo::DebugInfoPrint() { 962 void DebugInfo::DebugInfoPrint() {
(...skipping 19 matching lines...) Expand all
981 982
982 983
983 void BreakPointInfo::BreakPointInfoPrint() { 984 void BreakPointInfo::BreakPointInfoPrint() {
984 HeapObject::PrintHeader("BreakPointInfo"); 985 HeapObject::PrintHeader("BreakPointInfo");
985 PrintF("\n - code_position: %d", code_position()); 986 PrintF("\n - code_position: %d", code_position());
986 PrintF("\n - source_position: %d", source_position()); 987 PrintF("\n - source_position: %d", source_position());
987 PrintF("\n - statement_position: %d", statement_position()); 988 PrintF("\n - statement_position: %d", statement_position());
988 PrintF("\n - break_point_objects: "); 989 PrintF("\n - break_point_objects: ");
989 break_point_objects()->ShortPrint(); 990 break_point_objects()->ShortPrint();
990 } 991 }
992 #endif
991 993
992 994
993 void JSObject::IncrementSpillStatistics(SpillInformation* info) { 995 void JSObject::IncrementSpillStatistics(SpillInformation* info) {
994 info->number_of_objects_++; 996 info->number_of_objects_++;
995 // Named properties 997 // Named properties
996 if (HasFastProperties()) { 998 if (HasFastProperties()) {
997 info->number_of_objects_with_fast_properties_++; 999 info->number_of_objects_with_fast_properties_++;
998 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex(); 1000 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
999 info->number_of_fast_unused_fields_ += map()->unused_property_fields(); 1001 info->number_of_fast_unused_fields_ += map()->unused_property_fields();
1000 } else { 1002 } else {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 } 1092 }
1091 current = hash; 1093 current = hash;
1092 } 1094 }
1093 return true; 1095 return true;
1094 } 1096 }
1095 1097
1096 1098
1097 #endif // DEBUG 1099 #endif // DEBUG
1098 1100
1099 } } // namespace v8::internal 1101 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698