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

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

Issue 1836223002: [wasm] Enable wasm loop analysis by default. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Realloc. 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 Node* BuildI64SConvertF64(Node* input); 225 Node* BuildI64SConvertF64(Node* input);
226 Node* BuildI64UConvertF64(Node* input); 226 Node* BuildI64UConvertF64(Node* input);
227 227
228 Node* BuildI64DivS(Node* left, Node* right); 228 Node* BuildI64DivS(Node* left, Node* right);
229 Node* BuildI64RemS(Node* left, Node* right); 229 Node* BuildI64RemS(Node* left, Node* right);
230 Node* BuildI64DivU(Node* left, Node* right); 230 Node* BuildI64DivU(Node* left, Node* right);
231 Node* BuildI64RemU(Node* left, Node* right); 231 Node* BuildI64RemU(Node* left, Node* right);
232 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref, 232 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref,
233 MachineType result_type, int trap_zero); 233 MachineType result_type, int trap_zero);
234 234
235 Node** Realloc(Node** buffer, size_t count) { 235 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
236 Node** buf = Buffer(count); 236 Node** buf = Buffer(new_count);
237 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); 237 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
238 return buf; 238 return buf;
239 } 239 }
240 }; 240 };
241 } // namespace compiler 241 } // namespace compiler
242 } // namespace internal 242 } // namespace internal
243 } // namespace v8 243 } // namespace v8
244 244
245 #endif // V8_COMPILER_WASM_COMPILER_H_ 245 #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