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

Side by Side Diff: src/WasmTranslator.h

Issue 1918213003: Subzero, Wasm: Dynamically reallocate read buffer. Runtime improvements. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Some code review feedback." Created 4 years, 7 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698