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

Side by Side Diff: src/compiler/arm64/linkage-arm64.cc

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix GN for realz 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/compiler/arm/linkage-arm.cc ('k') | src/compiler/ia32/linkage-ia32.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 Arm64LinkageHelperTraits { 15 struct Arm64LinkageHelperTraits {
16 static Register ReturnValueReg() { return x0; } 16 static Register ReturnValueReg() { return x0; }
17 static Register ReturnValue2Reg() { return x1; } 17 static Register ReturnValue2Reg() { return x1; }
18 static Register JSCallFunctionReg() { return x1; } 18 static Register JSCallFunctionReg() { return x1; }
19 static Register ContextReg() { return cp; } 19 static Register ContextReg() { return cp; }
20 static Register InterpreterBytecodePointerReg() { return x19; }
21 static Register InterpreterDispatchTableReg() { return x20; }
20 static Register RuntimeCallFunctionReg() { return x1; } 22 static Register RuntimeCallFunctionReg() { return x1; }
21 static Register RuntimeCallArgCountReg() { return x0; } 23 static Register RuntimeCallArgCountReg() { return x0; }
22 static RegList CCalleeSaveRegisters() { 24 static RegList CCalleeSaveRegisters() {
23 return (1 << x19.code()) | (1 << x20.code()) | (1 << x21.code()) | 25 return (1 << x19.code()) | (1 << x20.code()) | (1 << x21.code()) |
24 (1 << x22.code()) | (1 << x23.code()) | (1 << x24.code()) | 26 (1 << x22.code()) | (1 << x23.code()) | (1 << x24.code()) |
25 (1 << x25.code()) | (1 << x26.code()) | (1 << x27.code()) | 27 (1 << x25.code()) | (1 << x26.code()) | (1 << x27.code()) |
26 (1 << x28.code()) | (1 << x29.code()) | (1 << x30.code()); 28 (1 << x28.code()) | (1 << x29.code()) | (1 << x30.code());
27 } 29 }
28 static RegList CCalleeSaveFPRegisters() { 30 static RegList CCalleeSaveFPRegisters() {
29 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) | 31 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 return_type); 67 return_type);
66 } 68 }
67 69
68 70
69 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 71 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
70 const MachineSignature* sig) { 72 const MachineSignature* sig) {
71 return LH::GetSimplifiedCDescriptor(zone, sig); 73 return LH::GetSimplifiedCDescriptor(zone, sig);
72 } 74 }
73 75
74 76
75 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor( 77 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) {
76 Zone* zone, const MachineSignature* sig) { 78 return LH::GetInterpreterDispatchDescriptor(zone);
77 return LH::GetInterpreterDispatchDescriptor(zone, sig);
78 } 79 }
79 80
80 } // namespace compiler 81 } // namespace compiler
81 } // namespace internal 82 } // namespace internal
82 } // namespace v8 83 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/linkage-arm.cc ('k') | src/compiler/ia32/linkage-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698