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

Side by Side Diff: src/arm64/full-codegen-arm64.cc

Issue 1203813002: [es6] Make new.target work in functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test again. It got lost in last patchset 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 unified diff | Download patch
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/builtins.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 __ B(ne, &non_construct_frame); 267 __ B(ne, &non_construct_frame);
268 __ Ldr(x0, MemOperand(x2, StandardFrameConstants::kExpressionsOffset - 268 __ Ldr(x0, MemOperand(x2, StandardFrameConstants::kExpressionsOffset -
269 2 * kPointerSize)); 269 2 * kPointerSize));
270 __ B(&done); 270 __ B(&done);
271 271
272 __ Bind(&non_construct_frame); 272 __ Bind(&non_construct_frame);
273 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex); 273 __ LoadRoot(x0, Heap::kUndefinedValueRootIndex);
274 274
275 __ Bind(&done); 275 __ Bind(&done);
276 // new.target is parameter -2. 276
277 SetVar(new_target_var, x0, x2, x3); 277 SetVar(new_target_var, x0, x2, x3);
278 } 278 }
279 279
280 // Possibly allocate RestParameters 280 // Possibly allocate RestParameters
281 int rest_index; 281 int rest_index;
282 Variable* rest_param = scope()->rest_parameter(&rest_index); 282 Variable* rest_param = scope()->rest_parameter(&rest_index);
283 if (rest_param) { 283 if (rest_param) {
284 Comment cmnt(masm_, "[ Allocate rest parameter array"); 284 Comment cmnt(masm_, "[ Allocate rest parameter array");
285 285
286 int num_parameters = info->scope()->num_parameters(); 286 int num_parameters = info->scope()->num_parameters();
(...skipping 5310 matching lines...) Expand 10 before | Expand all | Expand 10 after
5597 } 5597 }
5598 5598
5599 return INTERRUPT; 5599 return INTERRUPT;
5600 } 5600 }
5601 5601
5602 5602
5603 } // namespace internal 5603 } // namespace internal
5604 } // namespace v8 5604 } // namespace v8
5605 5605
5606 #endif // V8_TARGET_ARCH_ARM64 5606 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698