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

Side by Side Diff: src/preparser.h

Issue 1024603002: Remove --harmony-numeric-literal flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git rebase Created 5 years, 8 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/runtime/runtime-numbers.cc » ('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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 allow_strong_mode_(false) {} 93 allow_strong_mode_(false) {}
94 94
95 // Getters that indicate whether certain syntactical constructs are 95 // Getters that indicate whether certain syntactical constructs are
96 // allowed to be parsed by this instance of the parser. 96 // allowed to be parsed by this instance of the parser.
97 bool allow_lazy() const { return allow_lazy_; } 97 bool allow_lazy() const { return allow_lazy_; }
98 bool allow_natives() const { return allow_natives_; } 98 bool allow_natives() const { return allow_natives_; }
99 bool allow_harmony_arrow_functions() const { 99 bool allow_harmony_arrow_functions() const {
100 return allow_harmony_arrow_functions_; 100 return allow_harmony_arrow_functions_;
101 } 101 }
102 bool allow_harmony_modules() const { return scanner()->HarmonyModules(); } 102 bool allow_harmony_modules() const { return scanner()->HarmonyModules(); }
103 bool allow_harmony_numeric_literals() const {
104 return scanner()->HarmonyNumericLiterals();
105 }
106 bool allow_harmony_classes() const { return scanner()->HarmonyClasses(); } 103 bool allow_harmony_classes() const { return scanner()->HarmonyClasses(); }
107 bool allow_harmony_object_literals() const { 104 bool allow_harmony_object_literals() const {
108 return allow_harmony_object_literals_; 105 return allow_harmony_object_literals_;
109 } 106 }
110 bool allow_harmony_sloppy() const { return allow_harmony_sloppy_; } 107 bool allow_harmony_sloppy() const { return allow_harmony_sloppy_; }
111 bool allow_harmony_unicode() const { return scanner()->HarmonyUnicode(); } 108 bool allow_harmony_unicode() const { return scanner()->HarmonyUnicode(); }
112 bool allow_harmony_computed_property_names() const { 109 bool allow_harmony_computed_property_names() const {
113 return allow_harmony_computed_property_names_; 110 return allow_harmony_computed_property_names_;
114 } 111 }
115 bool allow_harmony_rest_params() const { 112 bool allow_harmony_rest_params() const {
116 return allow_harmony_rest_params_; 113 return allow_harmony_rest_params_;
117 } 114 }
118 115
119 bool allow_strong_mode() const { return allow_strong_mode_; } 116 bool allow_strong_mode() const { return allow_strong_mode_; }
120 117
121 // Setters that determine whether certain syntactical constructs are 118 // Setters that determine whether certain syntactical constructs are
122 // allowed to be parsed by this instance of the parser. 119 // allowed to be parsed by this instance of the parser.
123 void set_allow_lazy(bool allow) { allow_lazy_ = allow; } 120 void set_allow_lazy(bool allow) { allow_lazy_ = allow; }
124 void set_allow_natives(bool allow) { allow_natives_ = allow; } 121 void set_allow_natives(bool allow) { allow_natives_ = allow; }
125 void set_allow_harmony_arrow_functions(bool allow) { 122 void set_allow_harmony_arrow_functions(bool allow) {
126 allow_harmony_arrow_functions_ = allow; 123 allow_harmony_arrow_functions_ = allow;
127 } 124 }
128 void set_allow_harmony_modules(bool allow) { 125 void set_allow_harmony_modules(bool allow) {
129 scanner()->SetHarmonyModules(allow); 126 scanner()->SetHarmonyModules(allow);
130 } 127 }
131 void set_allow_harmony_numeric_literals(bool allow) {
132 scanner()->SetHarmonyNumericLiterals(allow);
133 }
134 void set_allow_harmony_classes(bool allow) { 128 void set_allow_harmony_classes(bool allow) {
135 scanner()->SetHarmonyClasses(allow); 129 scanner()->SetHarmonyClasses(allow);
136 } 130 }
137 void set_allow_harmony_object_literals(bool allow) { 131 void set_allow_harmony_object_literals(bool allow) {
138 allow_harmony_object_literals_ = allow; 132 allow_harmony_object_literals_ = allow;
139 } 133 }
140 void set_allow_harmony_sloppy(bool allow) { 134 void set_allow_harmony_sloppy(bool allow) {
141 allow_harmony_sloppy_ = allow; 135 allow_harmony_sloppy_ = allow;
142 } 136 }
143 void set_allow_harmony_unicode(bool allow) { 137 void set_allow_harmony_unicode(bool allow) {
(...skipping 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after
3163 *ok = false; 3157 *ok = false;
3164 return; 3158 return;
3165 } 3159 }
3166 has_seen_constructor_ = true; 3160 has_seen_constructor_ = true;
3167 return; 3161 return;
3168 } 3162 }
3169 } 3163 }
3170 } } // v8::internal 3164 } } // v8::internal
3171 3165
3172 #endif // V8_PREPARSER_H 3166 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/runtime/runtime-numbers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698