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

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

Issue 1151853003: [strong] create strong array literals Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix a test Created 5 years, 7 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 int num_parameters = info->scope()->num_parameters(); 256 int num_parameters = info->scope()->num_parameters();
257 int offset = num_parameters * kPointerSize; 257 int offset = num_parameters * kPointerSize;
258 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { 258 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) {
259 --num_parameters; 259 --num_parameters;
260 ++rest_index; 260 ++rest_index;
261 } 261 }
262 262
263 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); 263 __ add(r3, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
264 __ mov(r2, Operand(Smi::FromInt(num_parameters))); 264 __ mov(r2, Operand(Smi::FromInt(num_parameters)));
265 __ mov(r1, Operand(Smi::FromInt(rest_index))); 265 __ mov(r1, Operand(Smi::FromInt(rest_index)));
266 __ Push(r3, r2, r1); 266 __ mov(r0, Operand(Smi::FromInt(language_mode())));
267 __ Push(r3, r2, r1, r0);
267 268
268 RestParamAccessStub stub(isolate()); 269 RestParamAccessStub stub(isolate());
269 __ CallStub(&stub); 270 __ CallStub(&stub);
270 271
271 SetVar(rest_param, r0, r1, r2); 272 SetVar(rest_param, r0, r1, r2);
272 } 273 }
273 274
274 Variable* arguments = scope()->arguments(); 275 Variable* arguments = scope()->arguments();
275 if (arguments != NULL) { 276 if (arguments != NULL) {
276 // Function uses arguments object. 277 // Function uses arguments object.
(...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after
5512 5513
5513 DCHECK(interrupt_address == 5514 DCHECK(interrupt_address ==
5514 isolate->builtins()->OsrAfterStackCheck()->entry()); 5515 isolate->builtins()->OsrAfterStackCheck()->entry());
5515 return OSR_AFTER_STACK_CHECK; 5516 return OSR_AFTER_STACK_CHECK;
5516 } 5517 }
5517 5518
5518 5519
5519 } } // namespace v8::internal 5520 } } // namespace v8::internal
5520 5521
5521 #endif // V8_TARGET_ARCH_ARM 5522 #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