| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // | 301 // |
| 302 // Can be used to translate {arg_index} (i.e. index of the call node input) as | 302 // Can be used to translate {arg_index} (i.e. index of the call node input) as |
| 303 // well as {param_index} (i.e. as stored in parameter nodes) into an operator | 303 // well as {param_index} (i.e. as stored in parameter nodes) into an operator |
| 304 // representing the architecture-specific location. The following call node | 304 // representing the architecture-specific location. The following call node |
| 305 // layouts are supported (where {n} is the number of value inputs): | 305 // layouts are supported (where {n} is the number of value inputs): |
| 306 // | 306 // |
| 307 // #0 #1 #2 [...] #n | 307 // #0 #1 #2 [...] #n |
| 308 // Call[CodeStub] code, arg 1, arg 2, [...], context | 308 // Call[CodeStub] code, arg 1, arg 2, [...], context |
| 309 // Call[JSFunction] function, rcvr, arg 1, [...], new, #arg, context | 309 // Call[JSFunction] function, rcvr, arg 1, [...], new, #arg, context |
| 310 // Call[Runtime] CEntryStub, arg 1, arg 2, [...], fun, #arg, context | 310 // Call[Runtime] CEntryStub, arg 1, arg 2, [...], fun, #arg, context |
| 311 // Call[BytecodeDispatch] address, arg 1, arg 2, [...], context | 311 // Call[BytecodeDispatch] address, arg 1, arg 2, [...] |
| 312 class Linkage : public ZoneObject { | 312 class Linkage : public ZoneObject { |
| 313 public: | 313 public: |
| 314 explicit Linkage(CallDescriptor* incoming) : incoming_(incoming) {} | 314 explicit Linkage(CallDescriptor* incoming) : incoming_(incoming) {} |
| 315 | 315 |
| 316 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); | 316 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); |
| 317 | 317 |
| 318 // The call descriptor for this compilation unit describes the locations | 318 // The call descriptor for this compilation unit describes the locations |
| 319 // of incoming parameters and the outgoing return value(s). | 319 // of incoming parameters and the outgoing return value(s). |
| 320 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } | 320 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } |
| 321 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, | 321 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |