Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: src/compiler/code-stub-assembler.h

Issue 1852553003: [builtins] Migrate Math.clz32 to a TurboFan builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698