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

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

Issue 449010: Merge revisions r3372 - r3374 to trunk... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years 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.h ('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 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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 1133
1134 void Script::ScriptVerify() { 1134 void Script::ScriptVerify() {
1135 CHECK(IsScript()); 1135 CHECK(IsScript());
1136 VerifyPointer(source()); 1136 VerifyPointer(source());
1137 VerifyPointer(name()); 1137 VerifyPointer(name());
1138 line_offset()->SmiVerify(); 1138 line_offset()->SmiVerify();
1139 column_offset()->SmiVerify(); 1139 column_offset()->SmiVerify();
1140 VerifyPointer(data()); 1140 VerifyPointer(data());
1141 VerifyPointer(wrapper()); 1141 VerifyPointer(wrapper());
1142 type()->SmiVerify(); 1142 type()->SmiVerify();
1143 VerifyPointer(line_ends_fixed_array()); 1143 VerifyPointer(line_ends());
1144 VerifyPointer(line_ends_js_array());
1145 VerifyPointer(id()); 1144 VerifyPointer(id());
1146 } 1145 }
1147 1146
1148 1147
1149 void Script::ScriptPrint() { 1148 void Script::ScriptPrint() {
1150 HeapObject::PrintHeader("Script"); 1149 HeapObject::PrintHeader("Script");
1151 PrintF("\n - source: "); 1150 PrintF("\n - source: ");
1152 source()->ShortPrint(); 1151 source()->ShortPrint();
1153 PrintF("\n - name: "); 1152 PrintF("\n - name: ");
1154 name()->ShortPrint(); 1153 name()->ShortPrint();
1155 PrintF("\n - line_offset: "); 1154 PrintF("\n - line_offset: ");
1156 line_offset()->ShortPrint(); 1155 line_offset()->ShortPrint();
1157 PrintF("\n - column_offset: "); 1156 PrintF("\n - column_offset: ");
1158 column_offset()->ShortPrint(); 1157 column_offset()->ShortPrint();
1159 PrintF("\n - type: "); 1158 PrintF("\n - type: ");
1160 type()->ShortPrint(); 1159 type()->ShortPrint();
1161 PrintF("\n - id: "); 1160 PrintF("\n - id: ");
1162 id()->ShortPrint(); 1161 id()->ShortPrint();
1162 PrintF("\n - data: ");
1163 data()->ShortPrint();
1164 PrintF("\n - context data: ");
1165 context_data()->ShortPrint();
1166 PrintF("\n - wrapper: ");
1167 wrapper()->ShortPrint();
1168 PrintF("\n - compilation type: ");
1169 compilation_type()->ShortPrint();
1170 PrintF("\n - line ends: ");
1171 line_ends()->ShortPrint();
1172 PrintF("\n - eval from function: ");
1173 eval_from_function()->ShortPrint();
1174 PrintF("\n - eval from instructions offset: ");
1175 eval_from_instructions_offset()->ShortPrint();
1163 PrintF("\n"); 1176 PrintF("\n");
1164 } 1177 }
1165 1178
1166 1179
1167 #ifdef ENABLE_DEBUGGER_SUPPORT 1180 #ifdef ENABLE_DEBUGGER_SUPPORT
1168 void DebugInfo::DebugInfoVerify() { 1181 void DebugInfo::DebugInfoVerify() {
1169 CHECK(IsDebugInfo()); 1182 CHECK(IsDebugInfo());
1170 VerifyPointer(shared()); 1183 VerifyPointer(shared());
1171 VerifyPointer(original_code()); 1184 VerifyPointer(original_code());
1172 VerifyPointer(code()); 1185 VerifyPointer(code());
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 } 1333 }
1321 current = hash; 1334 current = hash;
1322 } 1335 }
1323 return true; 1336 return true;
1324 } 1337 }
1325 1338
1326 1339
1327 #endif // DEBUG 1340 #endif // DEBUG
1328 1341
1329 } } // namespace v8::internal 1342 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698