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

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

Issue 899803003: Removed most of the bogus CompilationInfo constructor calls. (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/linkage.h ('k') | src/compiler/pipeline.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler.h" 6 #include "src/compiler.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // No frame. Retrieve all parameters relative to stack pointer. 87 // No frame. Retrieve all parameters relative to stack pointer.
88 DCHECK(spill_slot < 0); // Must be a parameter. 88 DCHECK(spill_slot < 0); // Must be a parameter.
89 int register_save_area_size = frame->GetRegisterSaveAreaSize(); 89 int register_save_area_size = frame->GetRegisterSaveAreaSize();
90 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize + 90 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize +
91 kPCOnStackSize + extra; 91 kPCOnStackSize + extra;
92 return FrameOffset::FromStackPointer(offset); 92 return FrameOffset::FromStackPointer(offset);
93 } 93 }
94 } 94 }
95 95
96 96
97 CallDescriptor* Linkage::GetJSCallDescriptor(
98 int parameter_count, CallDescriptor::Flags flags) const {
99 return GetJSCallDescriptor(zone_, false, parameter_count, flags);
100 }
101
102
103 CallDescriptor* Linkage::GetRuntimeCallDescriptor(
104 Runtime::FunctionId function, int parameter_count,
105 Operator::Properties properties) const {
106 return GetRuntimeCallDescriptor(zone_, function, parameter_count, properties);
107 }
108
109
110 CallDescriptor* Linkage::GetStubCallDescriptor(
111 const CallInterfaceDescriptor& descriptor, int stack_parameter_count,
112 CallDescriptor::Flags flags, Operator::Properties properties) const {
113 return GetStubCallDescriptor(isolate_, zone_, descriptor,
114 stack_parameter_count, flags, properties);
115 }
116
117
118 // static 97 // static
119 bool Linkage::NeedsFrameState(Runtime::FunctionId function) { 98 bool Linkage::NeedsFrameState(Runtime::FunctionId function) {
120 if (!FLAG_turbo_deoptimization) { 99 if (!FLAG_turbo_deoptimization) {
121 return false; 100 return false;
122 } 101 }
123 102
124 // Most runtime functions need a FrameState. A few chosen ones that we know 103 // Most runtime functions need a FrameState. A few chosen ones that we know
125 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize 104 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize
126 // are blacklisted here and can be called without a FrameState. 105 // are blacklisted here and can be called without a FrameState.
127 switch (function) { 106 switch (function) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 182
204 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 183 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
205 const MachineSignature* sig) { 184 const MachineSignature* sig) {
206 UNIMPLEMENTED(); 185 UNIMPLEMENTED();
207 return NULL; 186 return NULL;
208 } 187 }
209 #endif // !V8_TURBOFAN_BACKEND 188 #endif // !V8_TURBOFAN_BACKEND
210 } 189 }
211 } 190 }
212 } // namespace v8::internal::compiler 191 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698