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

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

Issue 1245133002: [interpreter] Add Interpreter{Entry,Exit}Trampoline builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth_bytecode_array
Patch Set: Adding MIPS based on https://codereview.chromium.org/1257953002/ 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 unified diff | Download patch
« no previous file with comments | « src/compiler/x64/linkage-x64.cc ('k') | src/heap/heap.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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Receiver is just before the parameters on the caller's stack. 308 // Receiver is just before the parameters on the caller's stack.
309 int num_parameters = info->scope()->num_parameters(); 309 int num_parameters = info->scope()->num_parameters();
310 int offset = num_parameters * kPointerSize; 310 int offset = num_parameters * kPointerSize;
311 311
312 __ add(r2, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset)); 312 __ add(r2, fp, Operand(StandardFrameConstants::kCallerSPOffset + offset));
313 __ mov(r1, Operand(Smi::FromInt(num_parameters))); 313 __ mov(r1, Operand(Smi::FromInt(num_parameters)));
314 __ Push(r3, r2, r1); 314 __ Push(r3, r2, r1);
315 315
316 // Arguments to ArgumentsAccessStub: 316 // Arguments to ArgumentsAccessStub:
317 // function, receiver address, parameter count. 317 // function, receiver address, parameter count.
318 // The stub will rewrite receiever and parameter count if the previous 318 // The stub will rewrite receiver and parameter count if the previous
319 // stack frame was an arguments adapter frame. 319 // stack frame was an arguments adapter frame.
320 ArgumentsAccessStub::Type type; 320 ArgumentsAccessStub::Type type;
321 if (is_strict(language_mode()) || !is_simple_parameter_list()) { 321 if (is_strict(language_mode()) || !is_simple_parameter_list()) {
322 type = ArgumentsAccessStub::NEW_STRICT; 322 type = ArgumentsAccessStub::NEW_STRICT;
323 } else if (function()->has_duplicate_parameters()) { 323 } else if (function()->has_duplicate_parameters()) {
324 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; 324 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
325 } else { 325 } else {
326 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; 326 type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
327 } 327 }
328 ArgumentsAccessStub stub(isolate(), type); 328 ArgumentsAccessStub stub(isolate(), type);
(...skipping 5148 matching lines...) Expand 10 before | Expand all | Expand 10 after
5477 DCHECK(interrupt_address == 5477 DCHECK(interrupt_address ==
5478 isolate->builtins()->OsrAfterStackCheck()->entry()); 5478 isolate->builtins()->OsrAfterStackCheck()->entry());
5479 return OSR_AFTER_STACK_CHECK; 5479 return OSR_AFTER_STACK_CHECK;
5480 } 5480 }
5481 5481
5482 5482
5483 } // namespace internal 5483 } // namespace internal
5484 } // namespace v8 5484 } // namespace v8
5485 5485
5486 #endif // V8_TARGET_ARCH_ARM 5486 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/compiler/x64/linkage-x64.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698