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

Side by Side Diff: src/preparser.h

Issue 1271073002: Delete --harmony-unicode flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/parser.cc ('k') | src/scanner.h » ('j') | src/scanner.cc » ('J')
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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PREPARSER_H 5 #ifndef V8_PREPARSER_H
6 #define V8_PREPARSER_H 6 #define V8_PREPARSER_H
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 ALLOW_ACCESSORS(harmony_rest_parameters); 124 ALLOW_ACCESSORS(harmony_rest_parameters);
125 ALLOW_ACCESSORS(harmony_spreadcalls); 125 ALLOW_ACCESSORS(harmony_spreadcalls);
126 ALLOW_ACCESSORS(harmony_destructuring); 126 ALLOW_ACCESSORS(harmony_destructuring);
127 ALLOW_ACCESSORS(harmony_spread_arrays); 127 ALLOW_ACCESSORS(harmony_spread_arrays);
128 ALLOW_ACCESSORS(harmony_new_target); 128 ALLOW_ACCESSORS(harmony_new_target);
129 ALLOW_ACCESSORS(strong_mode); 129 ALLOW_ACCESSORS(strong_mode);
130 ALLOW_ACCESSORS(legacy_const); 130 ALLOW_ACCESSORS(legacy_const);
131 #undef ALLOW_ACCESSORS 131 #undef ALLOW_ACCESSORS
132 132
133 bool allow_harmony_modules() const { return scanner()->HarmonyModules(); } 133 bool allow_harmony_modules() const { return scanner()->HarmonyModules(); }
134 bool allow_harmony_unicode() const { return scanner()->HarmonyUnicode(); }
135 134
136 void set_allow_harmony_modules(bool a) { scanner()->SetHarmonyModules(a); } 135 void set_allow_harmony_modules(bool a) { scanner()->SetHarmonyModules(a); }
137 void set_allow_harmony_unicode(bool a) { scanner()->SetHarmonyUnicode(a); }
138 136
139 protected: 137 protected:
140 enum AllowRestrictedIdentifiers { 138 enum AllowRestrictedIdentifiers {
141 kAllowRestrictedIdentifiers, 139 kAllowRestrictedIdentifiers,
142 kDontAllowRestrictedIdentifiers 140 kDontAllowRestrictedIdentifiers
143 }; 141 };
144 142
145 enum Mode { 143 enum Mode {
146 PARSE_LAZILY, 144 PARSE_LAZILY,
147 PARSE_EAGERLY 145 PARSE_EAGERLY
(...skipping 3864 matching lines...) Expand 10 before | Expand all | Expand 10 after
4012 *ok = false; 4010 *ok = false;
4013 return; 4011 return;
4014 } 4012 }
4015 has_seen_constructor_ = true; 4013 has_seen_constructor_ = true;
4016 return; 4014 return;
4017 } 4015 }
4018 } 4016 }
4019 } } // v8::internal 4017 } } // v8::internal
4020 4018
4021 #endif // V8_PREPARSER_H 4019 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/scanner.h » ('j') | src/scanner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698