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/operator.h" | 10 #include "src/compiler/operator.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 static int GetJSCallContextParamIndex(int parameter_count) { | 415 static int GetJSCallContextParamIndex(int parameter_count) { |
416 return parameter_count + 2; // Parameter (arity + 2) is special. | 416 return parameter_count + 2; // Parameter (arity + 2) is special. |
417 } | 417 } |
418 | 418 |
419 // A special {Parameter} index for JSCalls that represents the closure. | 419 // A special {Parameter} index for JSCalls that represents the closure. |
420 static const int kJSCallClosureParamIndex = -1; | 420 static const int kJSCallClosureParamIndex = -1; |
421 | 421 |
422 // A special {OsrValue} index to indicate the context spill slot. | 422 // A special {OsrValue} index to indicate the context spill slot. |
423 static const int kOsrContextSpillSlotIndex = -1; | 423 static const int kOsrContextSpillSlotIndex = -1; |
424 | 424 |
| 425 // A special {OsrValue} index to indicate the accumulator register. |
| 426 static const int kOsrAccumulatorRegisterIndex = -1; |
| 427 |
425 private: | 428 private: |
426 CallDescriptor* const incoming_; | 429 CallDescriptor* const incoming_; |
427 | 430 |
428 DISALLOW_COPY_AND_ASSIGN(Linkage); | 431 DISALLOW_COPY_AND_ASSIGN(Linkage); |
429 }; | 432 }; |
430 | 433 |
431 } // namespace compiler | 434 } // namespace compiler |
432 } // namespace internal | 435 } // namespace internal |
433 } // namespace v8 | 436 } // namespace v8 |
434 | 437 |
435 #endif // V8_COMPILER_LINKAGE_H_ | 438 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |