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

Side by Side Diff: src/d8.cc

Issue 12223089: Fixed a memory leak in v8 and another one in d8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | src/isolate.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 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 printf("| c:%-60s | %11i |\n", key, counter->count()); 1371 printf("| c:%-60s | %11i |\n", key, counter->count());
1372 printf("| t:%-60s | %11i |\n", key, counter->sample_total()); 1372 printf("| t:%-60s | %11i |\n", key, counter->sample_total());
1373 } else { 1373 } else {
1374 printf("| %-62s | %11i |\n", key, counter->count()); 1374 printf("| %-62s | %11i |\n", key, counter->count());
1375 } 1375 }
1376 } 1376 }
1377 printf("+----------------------------------------------------------------+" 1377 printf("+----------------------------------------------------------------+"
1378 "-------------+\n"); 1378 "-------------+\n");
1379 delete [] counters; 1379 delete [] counters;
1380 } 1380 }
1381 delete context_mutex_;
1381 delete counters_file_; 1382 delete counters_file_;
1382 delete counter_map_; 1383 delete counter_map_;
1383 #endif // V8_SHARED 1384 #endif // V8_SHARED
1384 } 1385 }
1385 1386
1386 1387
1387 1388
1388 static FILE* FOpen(const char* path, const char* mode) { 1389 static FILE* FOpen(const char* path, const char* mode) {
1389 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) 1390 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
1390 FILE* result; 1391 FILE* result;
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 } 1965 }
1965 1966
1966 } // namespace v8 1967 } // namespace v8
1967 1968
1968 1969
1969 #ifndef GOOGLE3 1970 #ifndef GOOGLE3
1970 int main(int argc, char* argv[]) { 1971 int main(int argc, char* argv[]) {
1971 return v8::Shell::Main(argc, argv); 1972 return v8::Shell::Main(argc, argv);
1972 } 1973 }
1973 #endif 1974 #endif
OLDNEW
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698