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

Side by Side Diff: src/flag-definitions.h

Issue 53089: Fixed test memory leaks (Closed)
Patch Set: Created 11 years, 9 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #elif defined(FLAG_MODE_DEFINE_DEFAULTS) 55 #elif defined(FLAG_MODE_DEFINE_DEFAULTS)
56 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ 56 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \
57 static ctype const FLAGDEFAULT_##nam = def; 57 static ctype const FLAGDEFAULT_##nam = def;
58 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) 58 #define FLAG_READONLY(ftype, ctype, nam, def, cmt)
59 59
60 60
61 // We want to write entries into our meta data table, for internal parsing and 61 // We want to write entries into our meta data table, for internal parsing and
62 // printing / etc in the flag parser code. We only do this for writable flags. 62 // printing / etc in the flag parser code. We only do this for writable flags.
63 #elif defined(FLAG_MODE_META) 63 #elif defined(FLAG_MODE_META)
64 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \ 64 #define FLAG_FULL(ftype, ctype, nam, def, cmt) \
65 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt }, 65 { Flag::TYPE_##ftype, #nam, &FLAG_##nam, &FLAGDEFAULT_##nam, cmt, false },
66 #define FLAG_READONLY(ftype, ctype, nam, def, cmt) 66 #define FLAG_READONLY(ftype, ctype, nam, def, cmt)
67 67
68 #else 68 #else
69 #error No mode supplied when including flags.defs 69 #error No mode supplied when including flags.defs
70 #endif 70 #endif
71 71
72 #ifdef FLAG_MODE_DECLARE 72 #ifdef FLAG_MODE_DECLARE
73 // Structure used to hold a collection of arguments to the JavaScript code. 73 // Structure used to hold a collection of arguments to the JavaScript code.
74 struct JSArguments { 74 struct JSArguments {
75 public: 75 public:
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 #undef FLAG 375 #undef FLAG
376 376
377 #undef DEFINE_bool 377 #undef DEFINE_bool
378 #undef DEFINE_int 378 #undef DEFINE_int
379 #undef DEFINE_string 379 #undef DEFINE_string
380 380
381 #undef FLAG_MODE_DECLARE 381 #undef FLAG_MODE_DECLARE
382 #undef FLAG_MODE_DEFINE 382 #undef FLAG_MODE_DEFINE
383 #undef FLAG_MODE_DEFINE_DEFAULTS 383 #undef FLAG_MODE_DEFINE_DEFAULTS
384 #undef FLAG_MODE_META 384 #undef FLAG_MODE_META
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698