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

Side by Side Diff: src/compiler/wasm-compiler.h

Issue 1845443003: [wasm] Mask shift counts on architectures that don't implicitly mask. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Spelling 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 | « no previous file | src/compiler/wasm-compiler.cc » ('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_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 wasm::FunctionSig* function_signature_; 157 wasm::FunctionSig* function_signature_;
158 158
159 // Internal helper methods. 159 // Internal helper methods.
160 JSGraph* jsgraph() { return jsgraph_; } 160 JSGraph* jsgraph() { return jsgraph_; }
161 Graph* graph(); 161 Graph* graph();
162 162
163 Node* String(const char* string); 163 Node* String(const char* string);
164 Node* MemBuffer(uint32_t offset); 164 Node* MemBuffer(uint32_t offset);
165 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset); 165 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset);
166 166
167 Node* MaskShiftCount32(Node* node);
168 Node* MaskShiftCount64(Node* node);
169
167 Node* BuildCCall(MachineSignature* sig, Node** args); 170 Node* BuildCCall(MachineSignature* sig, Node** args);
168 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args); 171 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args);
169 172
170 Node* BuildF32Neg(Node* input); 173 Node* BuildF32Neg(Node* input);
171 Node* BuildF64Neg(Node* input); 174 Node* BuildF64Neg(Node* input);
172 Node* BuildF32CopySign(Node* left, Node* right); 175 Node* BuildF32CopySign(Node* left, Node* right);
173 Node* BuildF64CopySign(Node* left, Node* right); 176 Node* BuildF64CopySign(Node* left, Node* right);
174 Node* BuildF32Min(Node* left, Node* right); 177 Node* BuildF32Min(Node* left, Node* right);
175 Node* BuildF32Max(Node* left, Node* right); 178 Node* BuildF32Max(Node* left, Node* right);
176 Node* BuildF64Min(Node* left, Node* right); 179 Node* BuildF64Min(Node* left, Node* right);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 Node** buf = Buffer(new_count); 245 Node** buf = Buffer(new_count);
243 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 246 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
244 return buf; 247 return buf;
245 } 248 }
246 }; 249 };
247 } // namespace compiler 250 } // namespace compiler
248 } // namespace internal 251 } // namespace internal
249 } // namespace v8 252 } // namespace v8
250 253
251 #endif // V8_COMPILER_WASM_COMPILER_H_ 254 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698