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

Side by Side Diff: src/compiler/ia32/linkage-ia32.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/arm64/linkage-arm64.cc ('k') | src/compiler/interpreter-assembler.h » ('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 IA32LinkageHelperTraits { 15 struct IA32LinkageHelperTraits {
16 static Register ReturnValueReg() { return eax; } 16 static Register ReturnValueReg() { return eax; }
17 static Register ReturnValue2Reg() { return edx; } 17 static Register ReturnValue2Reg() { return edx; }
18 static Register JSCallFunctionReg() { return edi; } 18 static Register JSCallFunctionReg() { return edi; }
19 static Register ContextReg() { return esi; } 19 static Register ContextReg() { return esi; }
20 static Register InterpreterBytecodePointerReg() { return edi; }
21 static Register InterpreterDispatchTableReg() { return ebx; }
20 static Register RuntimeCallFunctionReg() { return ebx; } 22 static Register RuntimeCallFunctionReg() { return ebx; }
21 static Register RuntimeCallArgCountReg() { return eax; } 23 static Register RuntimeCallArgCountReg() { return eax; }
22 static RegList CCalleeSaveRegisters() { 24 static RegList CCalleeSaveRegisters() {
23 return esi.bit() | edi.bit() | ebx.bit(); 25 return esi.bit() | edi.bit() | ebx.bit();
24 } 26 }
25 static RegList CCalleeSaveFPRegisters() { return 0; } 27 static RegList CCalleeSaveFPRegisters() { return 0; }
26 static Register CRegisterParameter(int i) { return no_reg; } 28 static Register CRegisterParameter(int i) { return no_reg; }
27 static int CRegisterParametersLength() { return 0; } 29 static int CRegisterParametersLength() { return 0; }
28 static int CStackBackingStoreLength() { return 0; } 30 static int CStackBackingStoreLength() { return 0; }
29 }; 31 };
(...skipping 24 matching lines...) Expand all
54 return_type); 56 return_type);
55 } 57 }
56 58
57 59
58 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 60 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
59 const MachineSignature* sig) { 61 const MachineSignature* sig) {
60 return LH::GetSimplifiedCDescriptor(zone, sig); 62 return LH::GetSimplifiedCDescriptor(zone, sig);
61 } 63 }
62 64
63 65
64 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor( 66 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) {
65 Zone* zone, const MachineSignature* sig) { 67 return LH::GetInterpreterDispatchDescriptor(zone);
66 return LH::GetInterpreterDispatchDescriptor(zone, sig);
67 } 68 }
68 69
69 } // namespace compiler 70 } // namespace compiler
70 } // namespace internal 71 } // namespace internal
71 } // namespace v8 72 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/linkage-arm64.cc ('k') | src/compiler/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698