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

Side by Side Diff: src/compiler/arm/linkage-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/builtins.h ('k') | src/compiler/arm64/linkage-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/assembler.h" 5 #include "src/assembler.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/linkage-impl.h" 8 #include "src/compiler/linkage-impl.h"
9 #include "src/zone.h" 9 #include "src/zone.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 struct ArmLinkageHelperTraits { 15 struct ArmLinkageHelperTraits {
16 static Register ReturnValueReg() { return r0; } 16 static Register ReturnValueReg() { return r0; }
17 static Register ReturnValue2Reg() { return r1; } 17 static Register ReturnValue2Reg() { return r1; }
18 static Register JSCallFunctionReg() { return r1; } 18 static Register JSCallFunctionReg() { return r1; }
19 static Register ContextReg() { return cp; } 19 static Register ContextReg() { return cp; }
20 static Register InterpreterBytecodeOffsetReg() { return r5; } 20 static Register InterpreterBytecodeOffsetReg() {
21 static Register InterpreterBytecodeArrayReg() { return r6; } 21 return kInterpreterBytecodeOffsetRegister;
22 static Register InterpreterDispatchTableReg() { return r8; } 22 }
23 static Register InterpreterBytecodeArrayReg() {
24 return kInterpreterBytecodeArrayRegister;
25 }
26 static Register InterpreterDispatchTableReg() {
27 return kInterpreterDispatchTableRegister;
28 }
23 static Register RuntimeCallFunctionReg() { return r1; } 29 static Register RuntimeCallFunctionReg() { return r1; }
24 static Register RuntimeCallArgCountReg() { return r0; } 30 static Register RuntimeCallArgCountReg() { return r0; }
25 static RegList CCalleeSaveRegisters() { 31 static RegList CCalleeSaveRegisters() {
26 return r4.bit() | r5.bit() | r6.bit() | r7.bit() | r8.bit() | r9.bit() | 32 return r4.bit() | r5.bit() | r6.bit() | r7.bit() | r8.bit() | r9.bit() |
27 r10.bit(); 33 r10.bit();
28 } 34 }
29 static RegList CCalleeSaveFPRegisters() { 35 static RegList CCalleeSaveFPRegisters() {
30 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) | 36 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) |
31 (1 << d11.code()) | (1 << d12.code()) | (1 << d13.code()) | 37 (1 << d11.code()) | (1 << d12.code()) | (1 << d13.code()) |
32 (1 << d14.code()) | (1 << d15.code()); 38 (1 << d14.code()) | (1 << d15.code());
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 79 }
74 80
75 81
76 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { 82 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) {
77 return LH::GetInterpreterDispatchDescriptor(zone); 83 return LH::GetInterpreterDispatchDescriptor(zone);
78 } 84 }
79 85
80 } // namespace compiler 86 } // namespace compiler
81 } // namespace internal 87 } // namespace internal
82 } // namespace v8 88 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler/arm64/linkage-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698