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

Side by Side Diff: src/compiler/linkage-impl.h

Issue 874693006: Const-corrected some MachineSignature* parameters. (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/mips/linkage-mips.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 #ifndef V8_COMPILER_LINKAGE_IMPL_H_ 5 #ifndef V8_COMPILER_LINKAGE_IMPL_H_
6 #define V8_COMPILER_LINKAGE_IMPL_H_ 6 #define V8_COMPILER_LINKAGE_IMPL_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/osr.h" 9 #include "src/compiler/osr.h"
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 target_loc, // target location 185 target_loc, // target location
186 types.Build(), // machine_sig 186 types.Build(), // machine_sig
187 locations.Build(), // location_sig 187 locations.Build(), // location_sig
188 js_parameter_count, // js_parameter_count 188 js_parameter_count, // js_parameter_count
189 properties, // properties 189 properties, // properties
190 kNoCalleeSaved, // callee-saved registers 190 kNoCalleeSaved, // callee-saved registers
191 flags, // flags 191 flags, // flags
192 descriptor.DebugName(isolate)); 192 descriptor.DebugName(isolate));
193 } 193 }
194 194
195 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, 195 static CallDescriptor* GetSimplifiedCDescriptor(
196 MachineSignature* msig) { 196 Zone* zone, const MachineSignature* msig) {
197 LocationSignature::Builder locations(zone, msig->return_count(), 197 LocationSignature::Builder locations(zone, msig->return_count(),
198 msig->parameter_count()); 198 msig->parameter_count());
199 // Add return location(s). 199 // Add return location(s).
200 AddReturnLocations(&locations); 200 AddReturnLocations(&locations);
201 201
202 // Add register and/or stack parameter(s). 202 // Add register and/or stack parameter(s).
203 const int parameter_count = static_cast<int>(msig->parameter_count()); 203 const int parameter_count = static_cast<int>(msig->parameter_count());
204 for (int i = 0; i < parameter_count; i++) { 204 for (int i = 0; i < parameter_count; i++) {
205 if (i < LinkageTraits::CRegisterParametersLength()) { 205 if (i < LinkageTraits::CRegisterParametersLength()) {
206 locations.AddParam(regloc(LinkageTraits::CRegisterParameter(i))); 206 locations.AddParam(regloc(LinkageTraits::CRegisterParameter(i)));
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 return incoming_->GetInputLocation(parameter_index); 253 return incoming_->GetInputLocation(parameter_index);
254 } 254 }
255 } 255 }
256 256
257 257
258 } // namespace compiler 258 } // namespace compiler
259 } // namespace internal 259 } // namespace internal
260 } // namespace v8 260 } // namespace v8
261 261
262 #endif // V8_COMPILER_LINKAGE_IMPL_H_ 262 #endif // V8_COMPILER_LINKAGE_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.h ('k') | src/compiler/mips/linkage-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698