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

Side by Side Diff: src/spaces.cc

Issue 1700004: - Fix unitialized variable error found by compiler warning. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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 | « no previous file | 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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 1356
1357 1357
1358 static void ClearCodeKindStatistics() { 1358 static void ClearCodeKindStatistics() {
1359 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { 1359 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) {
1360 code_kind_statistics[i] = 0; 1360 code_kind_statistics[i] = 0;
1361 } 1361 }
1362 } 1362 }
1363 1363
1364 1364
1365 static void ReportCodeKindStatistics() { 1365 static void ReportCodeKindStatistics() {
1366 const char* table[Code::NUMBER_OF_KINDS]; 1366 const char* table[Code::NUMBER_OF_KINDS] = { NULL };
1367 1367
1368 #define CASE(name) \ 1368 #define CASE(name) \
1369 case Code::name: table[Code::name] = #name; \ 1369 case Code::name: table[Code::name] = #name; \
1370 break 1370 break
1371 1371
1372 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) { 1372 for (int i = 0; i < Code::NUMBER_OF_KINDS; i++) {
1373 switch (static_cast<Code::Kind>(i)) { 1373 switch (static_cast<Code::Kind>(i)) {
1374 CASE(FUNCTION); 1374 CASE(FUNCTION);
1375 CASE(STUB); 1375 CASE(STUB);
1376 CASE(BUILTIN); 1376 CASE(BUILTIN);
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2873 reinterpret_cast<Object**>(object->address() 2873 reinterpret_cast<Object**>(object->address()
2874 + Page::kObjectAreaSize), 2874 + Page::kObjectAreaSize),
2875 allocation_top); 2875 allocation_top);
2876 PrintF("\n"); 2876 PrintF("\n");
2877 } 2877 }
2878 } 2878 }
2879 } 2879 }
2880 #endif // DEBUG 2880 #endif // DEBUG
2881 2881
2882 } } // namespace v8::internal 2882 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698