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/parsing/parse-info.h

Issue 2372373002: Remove getters that duplicate FunctionKind in SharedFunctionInfo and ParseInfo (Closed)
Patch Set: Remove SharedFunctionInfo::is_resumable and FunctionState stuff 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/objects-printer.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 int start_position() const { return start_position_; } 141 int start_position() const { return start_position_; }
142 void set_start_position(int start_position) { 142 void set_start_position(int start_position) {
143 start_position_ = start_position; 143 start_position_ = start_position;
144 } 144 }
145 145
146 int end_position() const { return end_position_; } 146 int end_position() const { return end_position_; }
147 void set_end_position(int end_position) { end_position_ = end_position; } 147 void set_end_position(int end_position) { end_position_ = end_position; }
148 148
149 // Getters for individual compiler hints. 149 // Getters for individual compiler hints.
150 bool is_declaration() const; 150 bool is_declaration() const;
151 bool is_arrow() const;
152 bool is_async() const;
153 bool is_default_constructor() const;
154 bool requires_class_field_init() const; 151 bool requires_class_field_init() const;
155 bool is_class_field_initializer() const; 152 bool is_class_field_initializer() const;
156 FunctionKind function_kind() const; 153 FunctionKind function_kind() const;
157 154
158 //-------------------------------------------------------------------------- 155 //--------------------------------------------------------------------------
159 // TODO(titzer): these should not be part of ParseInfo. 156 // TODO(titzer): these should not be part of ParseInfo.
160 //-------------------------------------------------------------------------- 157 //--------------------------------------------------------------------------
161 Isolate* isolate() const { return isolate_; } 158 Isolate* isolate() const { return isolate_; }
162 Handle<SharedFunctionInfo> shared_info() const { return shared_; } 159 Handle<SharedFunctionInfo> shared_info() const { return shared_; }
163 Handle<Script> script() const { return script_; } 160 Handle<Script> script() const { return script_; }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 242
246 void SetFlag(Flag f) { flags_ |= f; } 243 void SetFlag(Flag f) { flags_ |= f; }
247 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; } 244 void SetFlag(Flag f, bool v) { flags_ = v ? flags_ | f : flags_ & ~f; }
248 bool GetFlag(Flag f) const { return (flags_ & f) != 0; } 245 bool GetFlag(Flag f) const { return (flags_ & f) != 0; }
249 }; 246 };
250 247
251 } // namespace internal 248 } // namespace internal
252 } // namespace v8 249 } // namespace v8
253 250
254 #endif // V8_PARSING_PARSE_INFO_H_ 251 #endif // V8_PARSING_PARSE_INFO_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/parsing/parse-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698