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/parser-base.h

Issue 2197543002: Quick fix: nullify Isolate in background parsing slightly later. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: a better fix Created 4 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/background-parsing-task.cc ('k') | no next file » | 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_PARSING_PARSER_BASE_H 5 #ifndef V8_PARSING_PARSER_BASE_H
6 #define V8_PARSING_PARSER_BASE_H 6 #define V8_PARSING_PARSER_BASE_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ALLOW_ACCESSORS(harmony_async_await); 245 ALLOW_ACCESSORS(harmony_async_await);
246 ALLOW_ACCESSORS(harmony_restrictive_generators); 246 ALLOW_ACCESSORS(harmony_restrictive_generators);
247 ALLOW_ACCESSORS(harmony_trailing_commas); 247 ALLOW_ACCESSORS(harmony_trailing_commas);
248 SCANNER_ACCESSORS(harmony_exponentiation_operator); 248 SCANNER_ACCESSORS(harmony_exponentiation_operator);
249 249
250 #undef SCANNER_ACCESSORS 250 #undef SCANNER_ACCESSORS
251 #undef ALLOW_ACCESSORS 251 #undef ALLOW_ACCESSORS
252 252
253 uintptr_t stack_limit() const { return stack_limit_; } 253 uintptr_t stack_limit() const { return stack_limit_; }
254 254
255 void set_stack_limit(uintptr_t stack_limit) { stack_limit_ = stack_limit; }
256
255 protected: 257 protected:
256 enum AllowRestrictedIdentifiers { 258 enum AllowRestrictedIdentifiers {
257 kAllowRestrictedIdentifiers, 259 kAllowRestrictedIdentifiers,
258 kDontAllowRestrictedIdentifiers 260 kDontAllowRestrictedIdentifiers
259 }; 261 };
260 262
261 enum Mode { 263 enum Mode {
262 PARSE_LAZILY, 264 PARSE_LAZILY,
263 PARSE_EAGERLY 265 PARSE_EAGERLY
264 }; 266 };
(...skipping 3392 matching lines...) Expand 10 before | Expand all | Expand 10 after
3657 has_seen_constructor_ = true; 3659 has_seen_constructor_ = true;
3658 return; 3660 return;
3659 } 3661 }
3660 } 3662 }
3661 3663
3662 3664
3663 } // namespace internal 3665 } // namespace internal
3664 } // namespace v8 3666 } // namespace v8
3665 3667
3666 #endif // V8_PARSING_PARSER_BASE_H 3668 #endif // V8_PARSING_PARSER_BASE_H
OLDNEW
« no previous file with comments | « src/background-parsing-task.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698