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

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

Issue 892593002: [turbofan] Fix usage of ThisFunction parameter in OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/common-operator.cc ('k') | src/compiler/js-generic-lowering.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/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(Zone* zone, int parameter_count, 33 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr,
34 int parameter_count,
34 CallDescriptor::Flags flags) { 35 CallDescriptor::Flags flags) {
35 return LH::GetJSCallDescriptor(zone, parameter_count, flags); 36 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags);
36 } 37 }
37 38
38 39
39 CallDescriptor* Linkage::GetRuntimeCallDescriptor( 40 CallDescriptor* Linkage::GetRuntimeCallDescriptor(
40 Zone* zone, Runtime::FunctionId function, int parameter_count, 41 Zone* zone, Runtime::FunctionId function, int parameter_count,
41 Operator::Properties properties) { 42 Operator::Properties properties) {
42 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, 43 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count,
43 properties); 44 properties);
44 } 45 }
45 46
46 47
47 CallDescriptor* Linkage::GetStubCallDescriptor( 48 CallDescriptor* Linkage::GetStubCallDescriptor(
48 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, 49 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor,
49 int stack_parameter_count, CallDescriptor::Flags flags, 50 int stack_parameter_count, CallDescriptor::Flags flags,
50 Operator::Properties properties) { 51 Operator::Properties properties) {
51 return LH::GetStubCallDescriptor(isolate, zone, descriptor, 52 return LH::GetStubCallDescriptor(isolate, zone, descriptor,
52 stack_parameter_count, flags, properties); 53 stack_parameter_count, flags, properties);
53 } 54 }
54 55
55 56
56 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 57 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
57 MachineSignature* sig) { 58 MachineSignature* sig) {
58 return LH::GetSimplifiedCDescriptor(zone, sig); 59 return LH::GetSimplifiedCDescriptor(zone, sig);
59 } 60 }
60 61
61 } // namespace compiler 62 } // namespace compiler
62 } // namespace internal 63 } // namespace internal
63 } // namespace v8 64 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698