| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 } | 361 } |
| 362 | 362 |
| 363 // Get the machine type of this function's return value. | 363 // Get the machine type of this function's return value. |
| 364 MachineType GetReturnType(size_t index = 0) const { | 364 MachineType GetReturnType(size_t index = 0) const { |
| 365 return incoming_->GetReturnType(index); | 365 return incoming_->GetReturnType(index); |
| 366 } | 366 } |
| 367 | 367 |
| 368 bool ParameterHasSecondaryLocation(int index) const; | 368 bool ParameterHasSecondaryLocation(int index) const; |
| 369 LinkageLocation GetParameterSecondaryLocation(int index) const; | 369 LinkageLocation GetParameterSecondaryLocation(int index) const; |
| 370 | 370 |
| 371 static int FrameStateInputCount(Runtime::FunctionId function); | 371 static bool NeedsFrameStateInput(Runtime::FunctionId function); |
| 372 | 372 |
| 373 // Get the location where an incoming OSR value is stored. | 373 // Get the location where an incoming OSR value is stored. |
| 374 LinkageLocation GetOsrValueLocation(int index) const; | 374 LinkageLocation GetOsrValueLocation(int index) const; |
| 375 | 375 |
| 376 // A special {Parameter} index for Stub Calls that represents context. | 376 // A special {Parameter} index for Stub Calls that represents context. |
| 377 static int GetStubCallContextParamIndex(int parameter_count) { | 377 static int GetStubCallContextParamIndex(int parameter_count) { |
| 378 return parameter_count + 0; // Parameter (arity + 0) is special. | 378 return parameter_count + 0; // Parameter (arity + 0) is special. |
| 379 } | 379 } |
| 380 | 380 |
| 381 // A special {Parameter} index for JSCalls that represents the new target. | 381 // A special {Parameter} index for JSCalls that represents the new target. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 403 CallDescriptor* const incoming_; | 403 CallDescriptor* const incoming_; |
| 404 | 404 |
| 405 DISALLOW_COPY_AND_ASSIGN(Linkage); | 405 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 406 }; | 406 }; |
| 407 | 407 |
| 408 } // namespace compiler | 408 } // namespace compiler |
| 409 } // namespace internal | 409 } // namespace internal |
| 410 } // namespace v8 | 410 } // namespace v8 |
| 411 | 411 |
| 412 #endif // V8_COMPILER_LINKAGE_H_ | 412 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |