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

Unified Diff: src/hydrogen.cc

Issue 1235153006: [es6] re-implement rest parameters via desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactor Scope::TempScope Created 5 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 | « src/compiler/linkage.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 56980266af249194862def6a90b425c7364003b7..73519286cd6a2fd643e704adf1e0935dbb660b01 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4573,12 +4573,6 @@ void HOptimizedGraphBuilder::SetUpScope(Scope* scope) {
graph()->GetArgumentsObject());
}
- int rest_index;
- Variable* rest = scope->rest_parameter(&rest_index);
- if (rest) {
- return Bailout(kRestParameter);
- }
-
if (scope->this_function_var() != nullptr ||
scope->new_target_var() != nullptr) {
return Bailout(kSuperReference);
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698