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

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

Issue 693103004: Revert "Skip the CallFunctionStub when the callee function can be statically determined." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/arm64/linkage-arm64.cc ('k') | src/compiler/js-generic-lowering.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/linkage-impl.h" 10 #include "src/compiler/linkage-impl.h"
(...skipping 12 matching lines...) Expand all
23 static Register RuntimeCallArgCountReg() { return eax; } 23 static Register RuntimeCallArgCountReg() { return eax; }
24 static RegList CCalleeSaveRegisters() { 24 static RegList CCalleeSaveRegisters() {
25 return esi.bit() | edi.bit() | ebx.bit(); 25 return esi.bit() | edi.bit() | ebx.bit();
26 } 26 }
27 static Register CRegisterParameter(int i) { return no_reg; } 27 static Register CRegisterParameter(int i) { return no_reg; }
28 static int CRegisterParametersLength() { return 0; } 28 static int CRegisterParametersLength() { return 0; }
29 }; 29 };
30 30
31 typedef LinkageHelper<IA32LinkageHelperTraits> LH; 31 typedef LinkageHelper<IA32LinkageHelperTraits> LH;
32 32
33 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone, 33 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) {
34 CallDescriptor::Flags flags) { 34 return LH::GetJSCallDescriptor(zone, parameter_count);
35 return LH::GetJSCallDescriptor(zone, parameter_count, flags);
36 } 35 }
37 36
38 37
39 CallDescriptor* Linkage::GetRuntimeCallDescriptor( 38 CallDescriptor* Linkage::GetRuntimeCallDescriptor(
40 Runtime::FunctionId function, int parameter_count, 39 Runtime::FunctionId function, int parameter_count,
41 Operator::Properties properties, Zone* zone) { 40 Operator::Properties properties, Zone* zone) {
42 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, 41 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count,
43 properties); 42 properties);
44 } 43 }
45 44
46 45
47 CallDescriptor* Linkage::GetStubCallDescriptor( 46 CallDescriptor* Linkage::GetStubCallDescriptor(
48 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, 47 const CallInterfaceDescriptor& descriptor, int stack_parameter_count,
49 CallDescriptor::Flags flags, Zone* zone) { 48 CallDescriptor::Flags flags, Zone* zone) {
50 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, 49 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count,
51 flags); 50 flags);
52 } 51 }
53 52
54 53
55 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 54 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
56 MachineSignature* sig) { 55 MachineSignature* sig) {
57 return LH::GetSimplifiedCDescriptor(zone, sig); 56 return LH::GetSimplifiedCDescriptor(zone, sig);
58 } 57 }
59 58
60 } // namespace compiler 59 } // namespace compiler
61 } // namespace internal 60 } // namespace internal
62 } // namespace v8 61 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/linkage-arm64.cc ('k') | src/compiler/js-generic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698