| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 } | 357 } |
| 358 | 358 |
| 359 bool ParameterHasSecondaryLocation(int index) const; | 359 bool ParameterHasSecondaryLocation(int index) const; |
| 360 LinkageLocation GetParameterSecondaryLocation(int index) const; | 360 LinkageLocation GetParameterSecondaryLocation(int index) const; |
| 361 | 361 |
| 362 static int FrameStateInputCount(Runtime::FunctionId function); | 362 static int FrameStateInputCount(Runtime::FunctionId function); |
| 363 | 363 |
| 364 // Get the location where an incoming OSR value is stored. | 364 // Get the location where an incoming OSR value is stored. |
| 365 LinkageLocation GetOsrValueLocation(int index) const; | 365 LinkageLocation GetOsrValueLocation(int index) const; |
| 366 | 366 |
| 367 // A special {Parameter} index for Stub Calls that represents context. |
| 368 static int GetStubCallContextParamIndex(int parameter_count) { |
| 369 return parameter_count + 0; // Parameter (arity + 0) is special. |
| 370 } |
| 371 |
| 367 // A special {Parameter} index for JSCalls that represents the new target. | 372 // A special {Parameter} index for JSCalls that represents the new target. |
| 368 static int GetJSCallNewTargetParamIndex(int parameter_count) { | 373 static int GetJSCallNewTargetParamIndex(int parameter_count) { |
| 369 return parameter_count + 0; // Parameter (arity + 0) is special. | 374 return parameter_count + 0; // Parameter (arity + 0) is special. |
| 370 } | 375 } |
| 371 | 376 |
| 372 // A special {Parameter} index for JSCalls that represents the argument count. | 377 // A special {Parameter} index for JSCalls that represents the argument count. |
| 373 static int GetJSCallArgCountParamIndex(int parameter_count) { | 378 static int GetJSCallArgCountParamIndex(int parameter_count) { |
| 374 return parameter_count + 1; // Parameter (arity + 1) is special. | 379 return parameter_count + 1; // Parameter (arity + 1) is special. |
| 375 } | 380 } |
| 376 | 381 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 389 CallDescriptor* const incoming_; | 394 CallDescriptor* const incoming_; |
| 390 | 395 |
| 391 DISALLOW_COPY_AND_ASSIGN(Linkage); | 396 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 392 }; | 397 }; |
| 393 | 398 |
| 394 } // namespace compiler | 399 } // namespace compiler |
| 395 } // namespace internal | 400 } // namespace internal |
| 396 } // namespace v8 | 401 } // namespace v8 |
| 397 | 402 |
| 398 #endif // V8_COMPILER_LINKAGE_H_ | 403 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |