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

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

Issue 9352013: Extend scanner with new Harmony module keywords (under flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 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/parser.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) 102 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt)
103 103
104 // 104 //
105 // Flags in all modes. 105 // Flags in all modes.
106 // 106 //
107 #define FLAG FLAG_FULL 107 #define FLAG FLAG_FULL
108 108
109 // Flags for experimental language features. 109 // Flags for experimental language features.
110 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof") 110 DEFINE_bool(harmony_typeof, false, "enable harmony semantics for typeof")
111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping") 111 DEFINE_bool(harmony_scoping, false, "enable harmony block scoping")
112 DEFINE_bool(harmony_modules, false, "enable harmony modules")
112 DEFINE_bool(harmony_proxies, false, "enable harmony proxies") 113 DEFINE_bool(harmony_proxies, false, "enable harmony proxies")
113 DEFINE_bool(harmony_collections, false, 114 DEFINE_bool(harmony_collections, false,
114 "enable harmony collections (sets, maps, and weak maps)") 115 "enable harmony collections (sets, maps, and weak maps)")
115 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)") 116 DEFINE_bool(harmony, false, "enable all harmony features (except typeof)")
116 DEFINE_implication(harmony, harmony_scoping) 117 DEFINE_implication(harmony, harmony_scoping)
118 DEFINE_implication(harmony, harmony_modules)
117 DEFINE_implication(harmony, harmony_proxies) 119 DEFINE_implication(harmony, harmony_proxies)
118 DEFINE_implication(harmony, harmony_collections) 120 DEFINE_implication(harmony, harmony_collections)
119 121
120 // Flags for experimental implementation features. 122 // Flags for experimental implementation features.
121 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values") 123 DEFINE_bool(smi_only_arrays, false, "tracks arrays with only smi values")
122 DEFINE_bool(clever_optimizations, 124 DEFINE_bool(clever_optimizations,
123 true, 125 true,
124 "Optimize object size, Array shift, DOM strings and string +") 126 "Optimize object size, Array shift, DOM strings and string +")
125 127
126 // Flags for data representation optimizations 128 // Flags for data representation optimizations
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 #undef DEFINE_bool 578 #undef DEFINE_bool
577 #undef DEFINE_int 579 #undef DEFINE_int
578 #undef DEFINE_string 580 #undef DEFINE_string
579 #undef DEFINE_implication 581 #undef DEFINE_implication
580 582
581 #undef FLAG_MODE_DECLARE 583 #undef FLAG_MODE_DECLARE
582 #undef FLAG_MODE_DEFINE 584 #undef FLAG_MODE_DEFINE
583 #undef FLAG_MODE_DEFINE_DEFAULTS 585 #undef FLAG_MODE_DEFINE_DEFAULTS
584 #undef FLAG_MODE_META 586 #undef FLAG_MODE_META
585 #undef FLAG_MODE_DEFINE_IMPLICATIONS 587 #undef FLAG_MODE_DEFINE_IMPLICATIONS
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698