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

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

Issue 2666903002: [wasm] Do float constant folding if the origin is not wasm (Closed)
Patch Set: Allow signalling NaNs by default Created 3 years, 10 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/compiler/wasm-compiler.cc ('k') | test/cctest/wasm/wasm-run-utils.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_WASM_MODULE_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/api.h" 10 #include "src/api.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 }; 162 };
163 163
164 // Static representation of a WASM export. 164 // Static representation of a WASM export.
165 struct WasmExport { 165 struct WasmExport {
166 uint32_t name_length; // length in bytes of the exported name. 166 uint32_t name_length; // length in bytes of the exported name.
167 uint32_t name_offset; // offset in module bytes of the name to export. 167 uint32_t name_offset; // offset in module bytes of the name to export.
168 WasmExternalKind kind; // kind of the export. 168 WasmExternalKind kind; // kind of the export.
169 uint32_t index; // index into the respective space. 169 uint32_t index; // index into the respective space.
170 }; 170 };
171 171
172 enum ModuleOrigin { kWasmOrigin, kAsmJsOrigin }; 172 enum ModuleOrigin : uint8_t { kWasmOrigin, kAsmJsOrigin };
173 struct ModuleWireBytes; 173 struct ModuleWireBytes;
174 174
175 // Static representation of a module. 175 // Static representation of a module.
176 struct V8_EXPORT_PRIVATE WasmModule { 176 struct V8_EXPORT_PRIVATE WasmModule {
177 static const uint32_t kPageSize = 0x10000; // Page size, 64kb. 177 static const uint32_t kPageSize = 0x10000; // Page size, 64kb.
178 static const uint32_t kMinMemPages = 1; // Minimum memory size = 64kb 178 static const uint32_t kMinMemPages = 1; // Minimum memory size = 64kb
179 179
180 Zone* owned_zone; 180 Zone* owned_zone;
181 uint32_t min_mem_pages = 0; // minimum size of the memory in 64k pages 181 uint32_t min_mem_pages = 0; // minimum size of the memory in 64k pages
182 uint32_t max_mem_pages = 0; // maximum size of the memory in 64k pages 182 uint32_t max_mem_pages = 0; // maximum size of the memory in 64k pages
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 470 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
471 void ValidateOrphanedInstance(Isolate* isolate, 471 void ValidateOrphanedInstance(Isolate* isolate,
472 Handle<WasmInstanceObject> instance); 472 Handle<WasmInstanceObject> instance);
473 473
474 } // namespace testing 474 } // namespace testing
475 } // namespace wasm 475 } // namespace wasm
476 } // namespace internal 476 } // namespace internal
477 } // namespace v8 477 } // namespace v8
478 478
479 #endif // V8_WASM_MODULE_H_ 479 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698