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

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

Issue 1152093003: [strong] create strong array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 6 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/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 7 #if V8_TARGET_ARCH_ARM
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 int num_parameters = info->scope()->num_parameters(); 261 int num_parameters = info->scope()->num_parameters();
262 int offset = num_parameters * kPointerSize; 262 int offset = num_parameters * kPointerSize;
263 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 263 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
264 --num_parameters; 264 --num_parameters;
265 ++rest_index; 265 ++rest_index;
266 } 266 }
267 267
268 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); 268 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
269 __ mov(r2, Operand(Smi::FromInt(num_parameters))); 269 __ mov(r2, Operand(Smi::FromInt(num_parameters)));
270 __ mov(r1, Operand(Smi::FromInt(rest_index))); 270 __ mov(r1, Operand(Smi::FromInt(rest_index)));
271 __ Push(r3, r2, r1); 271 __ mov(r0, Operand(Smi::FromInt(language_mode())));
272 __ Push(r3, r2, r1, r0);
272 273
273 RestParamAccessStub stub(isolate()); 274 RestParamAccessStub stub(isolate());
274 __ CallStub(&stub); 275 __ CallStub(&stub);
275 276
276 SetVar(rest_param, r0, r1, r2); 277 SetVar(rest_param, r0, r1, r2);
277 } 278 }
278 279
279 Variable* arguments = scope()->arguments(); 280 Variable* arguments = scope()->arguments();
280 if (arguments != NULL) { 281 if (arguments != NULL) {
281 // Function uses arguments object. 282 // Function uses arguments object.
(...skipping 5289 matching lines...) Expand 10 before | Expand all | Expand 10 after
5571 5572
5572 DCHECK(interrupt_address == 5573 DCHECK(interrupt_address ==
5573 isolate->builtins()->OsrAfterStackCheck()->entry()); 5574 isolate->builtins()->OsrAfterStackCheck()->entry());
5574 return OSR_AFTER_STACK_CHECK; 5575 return OSR_AFTER_STACK_CHECK;
5575 } 5576 }
5576 5577
5577 5578
5578 } } // namespace v8::internal 5579 } } // namespace v8::internal
5579 5580
5580 #endif // V8_TARGET_ARCH_ARM 5581 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698