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 #include "src/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 switch (k) { | 56 switch (k) { |
57 case CallDescriptor::kCallCodeObject: | 57 case CallDescriptor::kCallCodeObject: |
58 os << "Code"; | 58 os << "Code"; |
59 break; | 59 break; |
60 case CallDescriptor::kCallJSFunction: | 60 case CallDescriptor::kCallJSFunction: |
61 os << "JS"; | 61 os << "JS"; |
62 break; | 62 break; |
63 case CallDescriptor::kCallAddress: | 63 case CallDescriptor::kCallAddress: |
64 os << "Addr"; | 64 os << "Addr"; |
65 break; | 65 break; |
| 66 case CallDescriptor::kCallWasmFunction: |
| 67 os << "Wasm"; |
| 68 break; |
66 } | 69 } |
67 return os; | 70 return os; |
68 } | 71 } |
69 | 72 |
70 | 73 |
71 std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) { | 74 std::ostream& operator<<(std::ostream& os, const CallDescriptor& d) { |
72 // TODO(svenpanne) Output properties etc. and be less cryptic. | 75 // TODO(svenpanne) Output properties etc. and be less cryptic. |
73 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() | 76 return os << d.kind() << ":" << d.debug_name() << ":r" << d.ReturnCount() |
74 << "s" << d.StackParameterCount() << "i" << d.InputCount() << "f" | 77 << "s" << d.StackParameterCount() << "i" << d.InputCount() << "f" |
75 << d.FrameStateCount() << "t" << d.SupportsTailCalls(); | 78 << d.FrameStateCount() << "t" << d.SupportsTailCalls(); |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 } else { | 521 } else { |
519 DCHECK(loc == regloc(kContextRegister)); | 522 DCHECK(loc == regloc(kContextRegister)); |
520 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); | 523 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); |
521 } | 524 } |
522 } | 525 } |
523 | 526 |
524 | 527 |
525 } // namespace compiler | 528 } // namespace compiler |
526 } // namespace internal | 529 } // namespace internal |
527 } // namespace v8 | 530 } // namespace v8 |
OLD | NEW |