OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 V(Word64Sar) \ | 96 V(Word64Sar) \ |
97 V(Word64Ror) | 97 V(Word64Ror) |
98 | 98 |
99 #define CODE_STUB_ASSEMBLER_UNARY_OP_LIST(V) \ | 99 #define CODE_STUB_ASSEMBLER_UNARY_OP_LIST(V) \ |
100 V(Float64Neg) \ | 100 V(Float64Neg) \ |
101 V(Float64Sqrt) \ | 101 V(Float64Sqrt) \ |
102 V(ChangeFloat64ToUint32) \ | 102 V(ChangeFloat64ToUint32) \ |
103 V(ChangeInt32ToFloat64) \ | 103 V(ChangeInt32ToFloat64) \ |
104 V(ChangeInt32ToInt64) \ | 104 V(ChangeInt32ToInt64) \ |
105 V(ChangeUint32ToFloat64) \ | 105 V(ChangeUint32ToFloat64) \ |
106 V(ChangeUint32ToUint64) | 106 V(ChangeUint32ToUint64) \ |
| 107 V(Word32Clz) |
107 | 108 |
108 class CodeStubAssembler { | 109 class CodeStubAssembler { |
109 public: | 110 public: |
110 // Create with CallStub linkage. | 111 // Create with CallStub linkage. |
111 // |result_size| specifies the number of results returned by the stub. | 112 // |result_size| specifies the number of results returned by the stub. |
112 // TODO(rmcilroy): move result_size to the CallInterfaceDescriptor. | 113 // TODO(rmcilroy): move result_size to the CallInterfaceDescriptor. |
113 CodeStubAssembler(Isolate* isolate, Zone* zone, | 114 CodeStubAssembler(Isolate* isolate, Zone* zone, |
114 const CallInterfaceDescriptor& descriptor, | 115 const CallInterfaceDescriptor& descriptor, |
115 Code::Flags flags, const char* name, | 116 Code::Flags flags, const char* name, |
116 size_t result_size = 1); | 117 size_t result_size = 1); |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 // Map of variables to the list of value nodes that have been added from each | 466 // Map of variables to the list of value nodes that have been added from each |
466 // merge path in their order of merging. | 467 // merge path in their order of merging. |
467 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 468 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
468 }; | 469 }; |
469 | 470 |
470 } // namespace compiler | 471 } // namespace compiler |
471 } // namespace internal | 472 } // namespace internal |
472 } // namespace v8 | 473 } // namespace v8 |
473 | 474 |
474 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 475 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |