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

Unified Diff: runtime/vm/parser.cc

Issue 2158563002: Put a NoOOBMessageScope everywhere we have a NoReloadScope (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 146371844db2ed5c38f33a6eca464aff326248dc..9e7dcbd1018e1dc13c38c4658be6dc6e8392012b 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -12225,6 +12225,7 @@ StaticGetterNode* Parser::RunStaticFieldInitializer(
// to evaluate the expression and canonicalize the value.
if (field.is_const()) {
NoReloadScope no_reload_scope(isolate(), thread());
+ NoOOBMessageScope no_msg_scope(thread());
field.SetStaticValue(Object::transition_sentinel());
const int kNumArguments = 0; // no arguments.
const Function& func = Function::Handle(Z,
@@ -12283,6 +12284,7 @@ RawObject* Parser::EvaluateConstConstructorCall(
const Function& constructor,
ArgumentListNode* arguments) {
NoReloadScope no_reload_scope(isolate(), thread());
+ NoOOBMessageScope no_msg_scope(thread());
// Factories have one extra argument: the type arguments.
// Constructors have 1 extra arguments: receiver.
const int kNumExtraArgs = 1;
@@ -13798,6 +13800,7 @@ AstNode* Parser::ParseNewOperator(Token::Kind op_kind) {
String& Parser::Interpolate(const GrowableArray<AstNode*>& values) {
NoReloadScope no_reload_scope(isolate(), thread());
+ NoOOBMessageScope no_msg_scope(thread());
const Class& cls = Class::Handle(
Z, Library::LookupCoreClass(Symbols::StringBase()));
ASSERT(!cls.IsNull());
@@ -14146,6 +14149,7 @@ AstNode* Parser::ParsePrimary() {
const Instance& Parser::EvaluateConstExpr(TokenPosition expr_pos,
AstNode* expr) {
NoReloadScope no_reload_scope(isolate(), thread());
+ NoOOBMessageScope no_msg_scope(thread());
if (expr->IsLiteralNode()) {
return expr->AsLiteralNode()->literal();
} else if (expr->IsLoadLocalNode() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698