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

Unified Diff: src/full-codegen/arm/full-codegen-arm.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/full-codegen/arm/full-codegen-arm.cc
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
index 598d8e9f6e2af813515a1d6a70591757c6d32318..161a59e53c566842c79cb06ffefa2e2f838f73a7 100644
--- a/src/full-codegen/arm/full-codegen-arm.cc
+++ b/src/full-codegen/arm/full-codegen-arm.cc
@@ -272,27 +272,6 @@ void FullCodeGenerator::Generate() {
SetVar(new_target_var, r0, r2, r3);
}
- // Possibly allocate RestParameters
- int rest_index;
- Variable* rest_param = scope()->rest_parameter(&rest_index);
- if (rest_param) {
- Comment cmnt(masm_, "[ Allocate rest parameter array");
-
- int num_parameters = info->scope()->num_parameters();
- int offset = num_parameters * kPointerSize;
-
- __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
- __ mov(r2, Operand(Smi::FromInt(num_parameters)));
- __ mov(r1, Operand(Smi::FromInt(rest_index)));
- __ mov(r0, Operand(Smi::FromInt(language_mode())));
- __ Push(r3, r2, r1, r0);
-
- RestParamAccessStub stub(isolate());
- __ CallStub(&stub);
-
- SetVar(rest_param, r0, r1, r2);
- }
-
Variable* arguments = scope()->arguments();
if (arguments != NULL) {
// Function uses arguments object.

Powered by Google App Engine
This is Rietveld 408576698