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

Unified Diff: src/hydrogen.cc

Issue 1272673003: [es6] Re-implement rest parameters via desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tiny bit more cleanup Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index b5c4eabf7a95010a9d94948abe36b1a1e0cb603c..e8d81caa03473bcacf8b90ab888e2e2c17903c01 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -4649,12 +4649,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);

Powered by Google App Engine
This is Rietveld 408576698