OLD | NEW |
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // Get the machine type of this function's return value. | 244 // Get the machine type of this function's return value. |
245 MachineType GetReturnType() const { return incoming_->GetReturnType(0); } | 245 MachineType GetReturnType() const { return incoming_->GetReturnType(0); } |
246 | 246 |
247 // Get the frame offset for a given spill slot. The location depends on the | 247 // Get the frame offset for a given spill slot. The location depends on the |
248 // calling convention and the specific frame layout, and may thus be | 248 // calling convention and the specific frame layout, and may thus be |
249 // architecture-specific. Negative spill slots indicate arguments on the | 249 // architecture-specific. Negative spill slots indicate arguments on the |
250 // caller's frame. The {extra} parameter indicates an additional offset from | 250 // caller's frame. The {extra} parameter indicates an additional offset from |
251 // the frame offset, e.g. to index into part of a double slot. | 251 // the frame offset, e.g. to index into part of a double slot. |
252 FrameOffset GetFrameOffset(int spill_slot, Frame* frame, int extra = 0) const; | 252 FrameOffset GetFrameOffset(int spill_slot, Frame* frame, int extra = 0) const; |
253 | 253 |
254 static bool NeedsFrameState(Runtime::FunctionId function); | 254 static int FrameStateInputCount(Runtime::FunctionId function); |
255 | 255 |
256 // Get the location where an incoming OSR value is stored. | 256 // Get the location where an incoming OSR value is stored. |
257 LinkageLocation GetOsrValueLocation(int index) const; | 257 LinkageLocation GetOsrValueLocation(int index) const; |
258 | 258 |
259 // A special parameter index for JSCalls that represents the closure. | 259 // A special parameter index for JSCalls that represents the closure. |
260 static const int kJSFunctionCallClosureParamIndex = -1; | 260 static const int kJSFunctionCallClosureParamIndex = -1; |
261 | 261 |
262 private: | 262 private: |
263 CallDescriptor* const incoming_; | 263 CallDescriptor* const incoming_; |
264 | 264 |
265 DISALLOW_COPY_AND_ASSIGN(Linkage); | 265 DISALLOW_COPY_AND_ASSIGN(Linkage); |
266 }; | 266 }; |
267 | 267 |
268 } // namespace compiler | 268 } // namespace compiler |
269 } // namespace internal | 269 } // namespace internal |
270 } // namespace v8 | 270 } // namespace v8 |
271 | 271 |
272 #endif // V8_COMPILER_LINKAGE_H_ | 272 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |