Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/WasmTranslator.h - WASM to Subzero Translation ---------===// | 1 //===- subzero/src/WasmTranslator.h - WASM to Subzero Translation ---------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 /// Translates a single Wasm function. | 63 /// Translates a single Wasm function. |
| 64 /// | 64 /// |
| 65 /// Parameters: | 65 /// Parameters: |
| 66 /// Zone - an arena for the V8 code to allocate from. | 66 /// Zone - an arena for the V8 code to allocate from. |
| 67 /// Body - information about the function to translate | 67 /// Body - information about the function to translate |
| 68 std::unique_ptr<Cfg> | 68 std::unique_ptr<Cfg> |
| 69 translateFunction(v8::internal::Zone *Zone, | 69 translateFunction(v8::internal::Zone *Zone, |
| 70 v8::internal::wasm::FunctionBody &Body); | 70 v8::internal::wasm::FunctionBody &Body); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 std::unique_ptr<uint8_t[]> Buffer; | 73 std::vector<uint8_t> Buffer; |
|
John
2016/04/27 02:28:20
cool!
| |
| 74 SizeT BufferSize; | |
| 75 }; | 74 }; |
| 76 } | 75 } |
| 77 | 76 |
| 78 #endif // ALLOW_WASM | 77 #endif // ALLOW_WASM |
| 79 | 78 |
| 80 #endif // SUBZERO_SRC_WASMTRANSLATOR_H | 79 #endif // SUBZERO_SRC_WASMTRANSLATOR_H |
| OLD | NEW |