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

Side by Side Diff: src/parsing/parse-info.h

Issue 2406803003: Get rid of ParseInfo::lazy (Closed)
Patch Set: restore dcheck Created 4 years, 2 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/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parse-info.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_PARSING_PARSE_INFO_H_ 5 #ifndef V8_PARSING_PARSE_INFO_H_
6 #define V8_PARSING_PARSE_INFO_H_ 6 #define V8_PARSING_PARSE_INFO_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 27 matching lines...) Expand all
38 38
39 Zone* zone() const { return zone_; } 39 Zone* zone() const { return zone_; }
40 40
41 // Convenience accessor methods for flags. 41 // Convenience accessor methods for flags.
42 #define FLAG_ACCESSOR(flag, getter, setter) \ 42 #define FLAG_ACCESSOR(flag, getter, setter) \
43 bool getter() const { return GetFlag(flag); } \ 43 bool getter() const { return GetFlag(flag); } \
44 void setter() { SetFlag(flag); } \ 44 void setter() { SetFlag(flag); } \
45 void setter(bool val) { SetFlag(flag, val); } 45 void setter(bool val) { SetFlag(flag, val); }
46 46
47 FLAG_ACCESSOR(kToplevel, is_toplevel, set_toplevel) 47 FLAG_ACCESSOR(kToplevel, is_toplevel, set_toplevel)
48 FLAG_ACCESSOR(kLazy, is_lazy, set_lazy)
49 FLAG_ACCESSOR(kEval, is_eval, set_eval) 48 FLAG_ACCESSOR(kEval, is_eval, set_eval)
50 FLAG_ACCESSOR(kStrictMode, is_strict_mode, set_strict_mode) 49 FLAG_ACCESSOR(kStrictMode, is_strict_mode, set_strict_mode)
51 FLAG_ACCESSOR(kNative, is_native, set_native) 50 FLAG_ACCESSOR(kNative, is_native, set_native)
52 FLAG_ACCESSOR(kModule, is_module, set_module) 51 FLAG_ACCESSOR(kModule, is_module, set_module)
53 FLAG_ACCESSOR(kAllowLazyParsing, allow_lazy_parsing, set_allow_lazy_parsing) 52 FLAG_ACCESSOR(kAllowLazyParsing, allow_lazy_parsing, set_allow_lazy_parsing)
54 FLAG_ACCESSOR(kAstValueFactoryOwned, ast_value_factory_owned, 53 FLAG_ACCESSOR(kAstValueFactoryOwned, ast_value_factory_owned,
55 set_ast_value_factory_owned) 54 set_ast_value_factory_owned)
56 FLAG_ACCESSOR(kIsNamedExpression, is_named_expression, 55 FLAG_ACCESSOR(kIsNamedExpression, is_named_expression,
57 set_is_named_expression) 56 set_is_named_expression)
58 FLAG_ACCESSOR(kCallsEval, calls_eval, set_calls_eval) 57 FLAG_ACCESSOR(kCallsEval, calls_eval, set_calls_eval)
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 243
245 void SetFlag(Flag f) { flags_ |= f; } 244 void SetFlag(Flag f) { flags_ |= f; }
246 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } 245 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; }
247 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } 246 bool GetFlag(Flag f) const { return (flags_ & f) != 0; }
248 }; 247 };
249 248
250 } // namespace internal 249 } // namespace internal
251 } // namespace v8 250 } // namespace v8
252 251
253 #endif // V8_PARSING_PARSE_INFO_H_ 252 #endif // V8_PARSING_PARSE_INFO_H_
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/parsing/parse-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698