| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 FrameOffset GetFrameOffset(int spill_slot, Frame* frame, int extra = 0) const; | 261 FrameOffset GetFrameOffset(int spill_slot, Frame* frame, int extra = 0) const; |
| 262 | 262 |
| 263 static int FrameStateInputCount(Runtime::FunctionId function); | 263 static int FrameStateInputCount(Runtime::FunctionId function); |
| 264 | 264 |
| 265 // Get the location where an incoming OSR value is stored. | 265 // Get the location where an incoming OSR value is stored. |
| 266 LinkageLocation GetOsrValueLocation(int index) const; | 266 LinkageLocation GetOsrValueLocation(int index) const; |
| 267 | 267 |
| 268 // A special parameter index for JSCalls that represents the closure. | 268 // A special parameter index for JSCalls that represents the closure. |
| 269 static const int kJSFunctionCallClosureParamIndex = -1; | 269 static const int kJSFunctionCallClosureParamIndex = -1; |
| 270 | 270 |
| 271 // A special {OsrValue} index to indicate the context spill slot. |
| 272 static const int kOsrContextSpillSlotIndex = -1; |
| 273 |
| 271 private: | 274 private: |
| 272 CallDescriptor* const incoming_; | 275 CallDescriptor* const incoming_; |
| 273 | 276 |
| 274 DISALLOW_COPY_AND_ASSIGN(Linkage); | 277 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 275 }; | 278 }; |
| 276 | 279 |
| 277 } // namespace compiler | 280 } // namespace compiler |
| 278 } // namespace internal | 281 } // namespace internal |
| 279 } // namespace v8 | 282 } // namespace v8 |
| 280 | 283 |
| 281 #endif // V8_COMPILER_LINKAGE_H_ | 284 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |