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

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: Rebase and reformat comment 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') | 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 // 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 ALLOW_ACCESSORS(harmony_computed_property_names); 132 ALLOW_ACCESSORS(harmony_computed_property_names);
133 ALLOW_ACCESSORS(harmony_rest_parameters); 133 ALLOW_ACCESSORS(harmony_rest_parameters);
134 ALLOW_ACCESSORS(harmony_spreadcalls); 134 ALLOW_ACCESSORS(harmony_spreadcalls);
135 ALLOW_ACCESSORS(harmony_destructuring); 135 ALLOW_ACCESSORS(harmony_destructuring);
136 ALLOW_ACCESSORS(harmony_spread_arrays); 136 ALLOW_ACCESSORS(harmony_spread_arrays);
137 ALLOW_ACCESSORS(harmony_new_target); 137 ALLOW_ACCESSORS(harmony_new_target);
138 ALLOW_ACCESSORS(strong_mode); 138 ALLOW_ACCESSORS(strong_mode);
139 ALLOW_ACCESSORS(legacy_const); 139 ALLOW_ACCESSORS(legacy_const);
140 #undef ALLOW_ACCESSORS 140 #undef ALLOW_ACCESSORS
141 141
142 bool allow_harmony_unicode() const { return scanner()->HarmonyUnicode(); }
143
144 void set_allow_harmony_unicode(bool a) { scanner()->SetHarmonyUnicode(a); }
145
146 protected: 142 protected:
147 enum AllowRestrictedIdentifiers { 143 enum AllowRestrictedIdentifiers {
148 kAllowRestrictedIdentifiers, 144 kAllowRestrictedIdentifiers,
149 kDontAllowRestrictedIdentifiers 145 kDontAllowRestrictedIdentifiers
150 }; 146 };
151 147
152 enum Mode { 148 enum Mode {
153 PARSE_LAZILY, 149 PARSE_LAZILY,
154 PARSE_EAGERLY 150 PARSE_EAGERLY
155 }; 151 };
(...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after
4028 *ok = false; 4024 *ok = false;
4029 return; 4025 return;
4030 } 4026 }
4031 has_seen_constructor_ = true; 4027 has_seen_constructor_ = true;
4032 return; 4028 return;
4033 } 4029 }
4034 } 4030 }
4035 } } // v8::internal 4031 } } // v8::internal
4036 4032
4037 #endif // V8_PREPARSER_H 4033 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698