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

Side by Side Diff: src/compiler/x64/linkage-x64.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/raw-machine-assembler.cc ('k') | test/mjsunit/compiler/osr-follow.js » ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } else { 42 } else {
43 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9}; 43 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9};
44 return register_parameters[i]; 44 return register_parameters[i];
45 } 45 }
46 } 46 }
47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } 47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; }
48 }; 48 };
49 49
50 typedef LinkageHelper<X64LinkageHelperTraits> LH; 50 typedef LinkageHelper<X64LinkageHelperTraits> LH;
51 51
52 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, int parameter_count, 52 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr,
53 int parameter_count,
53 CallDescriptor::Flags flags) { 54 CallDescriptor::Flags flags) {
54 return LH::GetJSCallDescriptor(zone, parameter_count, flags); 55 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags);
55 } 56 }
56 57
57 58
58 CallDescriptor* Linkage::GetRuntimeCallDescriptor( 59 CallDescriptor* Linkage::GetRuntimeCallDescriptor(
59 Zone* zone, Runtime::FunctionId function, int parameter_count, 60 Zone* zone, Runtime::FunctionId function, int parameter_count,
60 Operator::Properties properties) { 61 Operator::Properties properties) {
61 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, 62 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count,
62 properties); 63 properties);
63 } 64 }
64 65
65 66
66 CallDescriptor* Linkage::GetStubCallDescriptor( 67 CallDescriptor* Linkage::GetStubCallDescriptor(
67 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, 68 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor,
68 int stack_parameter_count, CallDescriptor::Flags flags, 69 int stack_parameter_count, CallDescriptor::Flags flags,
69 Operator::Properties properties) { 70 Operator::Properties properties) {
70 return LH::GetStubCallDescriptor(isolate, zone, descriptor, 71 return LH::GetStubCallDescriptor(isolate, zone, descriptor,
71 stack_parameter_count, flags, properties); 72 stack_parameter_count, flags, properties);
72 } 73 }
73 74
74 75
75 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 76 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
76 MachineSignature* sig) { 77 MachineSignature* sig) {
77 return LH::GetSimplifiedCDescriptor(zone, sig); 78 return LH::GetSimplifiedCDescriptor(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/raw-machine-assembler.cc ('k') | test/mjsunit/compiler/osr-follow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698