| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 LinkageLocation GetOsrValueLocation(int index) const; | 323 LinkageLocation GetOsrValueLocation(int index) const; |
| 324 | 324 |
| 325 // A special parameter index for JSCalls that represents the closure. | 325 // A special parameter index for JSCalls that represents the closure. |
| 326 static const int kJSFunctionCallClosureParamIndex = -1; | 326 static const int kJSFunctionCallClosureParamIndex = -1; |
| 327 | 327 |
| 328 // A special {OsrValue} index to indicate the context spill slot. | 328 // A special {OsrValue} index to indicate the context spill slot. |
| 329 static const int kOsrContextSpillSlotIndex = -1; | 329 static const int kOsrContextSpillSlotIndex = -1; |
| 330 | 330 |
| 331 // Special parameter indices used to pass fixed register data through | 331 // Special parameter indices used to pass fixed register data through |
| 332 // interpreter dispatches. | 332 // interpreter dispatches. |
| 333 static const int kInterpreterBytecodeOffsetParameter = 0; | 333 static const int kInterpreterAccumulatorParameter = 0; |
| 334 static const int kInterpreterBytecodeArrayParameter = 1; | 334 static const int kInterpreterRegisterFileParameter = 1; |
| 335 static const int kInterpreterDispatchTableParameter = 2; | 335 static const int kInterpreterBytecodeOffsetParameter = 2; |
| 336 static const int kInterpreterBytecodeArrayParameter = 3; |
| 337 static const int kInterpreterDispatchTableParameter = 4; |
| 336 | 338 |
| 337 private: | 339 private: |
| 338 CallDescriptor* const incoming_; | 340 CallDescriptor* const incoming_; |
| 339 | 341 |
| 340 DISALLOW_COPY_AND_ASSIGN(Linkage); | 342 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 341 }; | 343 }; |
| 342 | 344 |
| 343 } // namespace compiler | 345 } // namespace compiler |
| 344 } // namespace internal | 346 } // namespace internal |
| 345 } // namespace v8 | 347 } // namespace v8 |
| 346 | 348 |
| 347 #endif // V8_COMPILER_LINKAGE_H_ | 349 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |