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

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

Issue 1426943010: [turbofan] Spill rsi and rdi in their existing locations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/linkage.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_H_ 5 #ifndef V8_COMPILER_LINKAGE_H_
6 #define V8_COMPILER_LINKAGE_H_ 6 #define V8_COMPILER_LINKAGE_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/frame.h" 9 #include "src/compiler/frame.h"
10 #include "src/compiler/machine-type.h" 10 #include "src/compiler/machine-type.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // Get the location where this function should place its return value. 310 // Get the location where this function should place its return value.
311 LinkageLocation GetReturnLocation(size_t index = 0) const { 311 LinkageLocation GetReturnLocation(size_t index = 0) const {
312 return incoming_->GetReturnLocation(index); 312 return incoming_->GetReturnLocation(index);
313 } 313 }
314 314
315 // Get the machine type of this function's return value. 315 // Get the machine type of this function's return value.
316 MachineType GetReturnType(size_t index = 0) const { 316 MachineType GetReturnType(size_t index = 0) const {
317 return incoming_->GetReturnType(index); 317 return incoming_->GetReturnType(index);
318 } 318 }
319 319
320 bool ParameterHasSecondaryLocation(int index) const;
321 LinkageLocation GetParameterSecondaryLocation(int index) const;
322
320 // Get the frame offset for a given spill slot. The location depends on the 323 // Get the frame offset for a given spill slot. The location depends on the
321 // calling convention and the specific frame layout, and may thus be 324 // calling convention and the specific frame layout, and may thus be
322 // architecture-specific. Negative spill slots indicate arguments on the 325 // architecture-specific. Negative spill slots indicate arguments on the
323 // caller's frame. 326 // caller's frame.
324 FrameOffset GetFrameOffset(int spill_slot, Frame* frame) const; 327 FrameOffset GetFrameOffset(int spill_slot, Frame* frame) const;
325 328
326 static int FrameStateInputCount(Runtime::FunctionId function); 329 static int FrameStateInputCount(Runtime::FunctionId function);
327 330
328 // Get the location where an incoming OSR value is stored. 331 // Get the location where an incoming OSR value is stored.
329 LinkageLocation GetOsrValueLocation(int index) const; 332 LinkageLocation GetOsrValueLocation(int index) const;
(...skipping 17 matching lines...) Expand all
347 CallDescriptor* const incoming_; 350 CallDescriptor* const incoming_;
348 351
349 DISALLOW_COPY_AND_ASSIGN(Linkage); 352 DISALLOW_COPY_AND_ASSIGN(Linkage);
350 }; 353 };
351 354
352 } // namespace compiler 355 } // namespace compiler
353 } // namespace internal 356 } // namespace internal
354 } // namespace v8 357 } // namespace v8
355 358
356 #endif // V8_COMPILER_LINKAGE_H_ 359 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698