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

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

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('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 // 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 if (e->IsMap()) { 1053 if (e->IsMap()) {
1054 Map::cast(e)->SharedMapVerify(); 1054 Map::cast(e)->SharedMapVerify();
1055 } else { 1055 } else {
1056 CHECK(e->IsUndefined()); 1056 CHECK(e->IsUndefined());
1057 } 1057 }
1058 } 1058 }
1059 } 1059 }
1060 } 1060 }
1061 1061
1062 1062
1063 #ifdef ENABLE_DEBUGGER_SUPPORT
1064 void DebugInfo::DebugInfoVerify() { 1063 void DebugInfo::DebugInfoVerify() {
1065 CHECK(IsDebugInfo()); 1064 CHECK(IsDebugInfo());
1066 VerifyPointer(shared()); 1065 VerifyPointer(shared());
1067 VerifyPointer(original_code()); 1066 VerifyPointer(original_code());
1068 VerifyPointer(code()); 1067 VerifyPointer(code());
1069 VerifyPointer(break_points()); 1068 VerifyPointer(break_points());
1070 } 1069 }
1071 1070
1072 1071
1073 void BreakPointInfo::BreakPointInfoVerify() { 1072 void BreakPointInfo::BreakPointInfoVerify() {
1074 CHECK(IsBreakPointInfo()); 1073 CHECK(IsBreakPointInfo());
1075 code_position()->SmiVerify(); 1074 code_position()->SmiVerify();
1076 source_position()->SmiVerify(); 1075 source_position()->SmiVerify();
1077 statement_position()->SmiVerify(); 1076 statement_position()->SmiVerify();
1078 VerifyPointer(break_point_objects()); 1077 VerifyPointer(break_point_objects());
1079 } 1078 }
1080 #endif // ENABLE_DEBUGGER_SUPPORT
1081 #endif // VERIFY_HEAP 1079 #endif // VERIFY_HEAP
1082 1080
1083 #ifdef DEBUG 1081 #ifdef DEBUG
1084 1082
1085 void JSObject::IncrementSpillStatistics(SpillInformation* info) { 1083 void JSObject::IncrementSpillStatistics(SpillInformation* info) {
1086 info->number_of_objects_++; 1084 info->number_of_objects_++;
1087 // Named properties 1085 // Named properties
1088 if (HasFastProperties()) { 1086 if (HasFastProperties()) {
1089 info->number_of_objects_with_fast_properties_++; 1087 info->number_of_objects_with_fast_properties_++;
1090 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex(); 1088 info->number_of_fast_used_fields_ += map()->NextFreePropertyIndex();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 for (int i = 0; i < number_of_transitions(); ++i) { 1229 for (int i = 0; i < number_of_transitions(); ++i) {
1232 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1230 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1233 } 1231 }
1234 return true; 1232 return true;
1235 } 1233 }
1236 1234
1237 1235
1238 #endif // DEBUG 1236 #endif // DEBUG
1239 1237
1240 } } // namespace v8::internal 1238 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698