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

Unified Diff: src/preparser.h

Issue 1135493006: Revert of [strong] Object literals create strong objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « src/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index f6418f23b0d19386f4aab448019d65b7cafedc40..aeef700bfe7593a8369b4c4b5f0350fa8dc5b707 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -1340,13 +1340,11 @@
PreParserExpression NewRegExpLiteral(PreParserIdentifier js_pattern,
PreParserIdentifier js_flags,
int literal_index,
- bool is_strong,
int pos) {
return PreParserExpression::Default();
}
PreParserExpression NewArrayLiteral(PreParserExpressionList values,
int literal_index,
- bool is_strong,
int pos) {
return PreParserExpression::Default();
}
@@ -1367,7 +1365,6 @@
int literal_index,
int boilerplate_properties,
bool has_function,
- bool is_strong,
int pos) {
return PreParserExpression::Default();
}
@@ -2213,8 +2210,7 @@
}
IdentifierT js_flags = this->GetNextSymbol(scanner());
Next();
- return factory()->NewRegExpLiteral(js_pattern, js_flags, literal_index,
- is_strong(language_mode()), pos);
+ return factory()->NewRegExpLiteral(js_pattern, js_flags, literal_index, pos);
}
@@ -2479,8 +2475,7 @@
// Update the scope information before the pre-parsing bailout.
int literal_index = function_state_->NextMaterializedLiteralIndex();
- return factory()->NewArrayLiteral(values, literal_index,
- is_strong(language_mode()), pos);
+ return factory()->NewArrayLiteral(values, literal_index, pos);
}
@@ -2736,7 +2731,6 @@
literal_index,
number_of_boilerplate_properties,
has_function,
- is_strong(language_mode()),
pos);
}
« no previous file with comments | « src/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698