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 |
11 /// \brief Declares a driver for translating Wasm bitcode into PNaCl bitcode. | 11 /// \brief Declares a driver for translating Wasm bitcode into PNaCl bitcode. |
12 /// | 12 /// |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef SUBZERO_SRC_WASMTRANSLATOR_H | 15 #ifndef SUBZERO_SRC_WASMTRANSLATOR_H |
16 #define SUBZERO_SRC_WASMTRANSLATOR_H | 16 #define SUBZERO_SRC_WASMTRANSLATOR_H |
17 | 17 |
| 18 #if ALLOW_WASM |
| 19 |
18 #include "IceGlobalContext.h" | 20 #include "IceGlobalContext.h" |
19 #include "IceTranslator.h" | 21 #include "IceTranslator.h" |
20 | 22 |
21 namespace v8 { | 23 namespace v8 { |
22 namespace internal { | 24 namespace internal { |
23 class Zone; | 25 class Zone; |
24 namespace wasm { | 26 namespace wasm { |
25 class FunctionEnv; | 27 class FunctionEnv; |
26 } // end of namespace wasm | 28 } // end of namespace wasm |
27 } // end of namespace internal | 29 } // end of namespace internal |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 v8::internal::wasm::FunctionEnv *Env, | 61 v8::internal::wasm::FunctionEnv *Env, |
60 const uint8_t *Base, | 62 const uint8_t *Base, |
61 const uint8_t *Start, | 63 const uint8_t *Start, |
62 const uint8_t *End); | 64 const uint8_t *End); |
63 | 65 |
64 private: | 66 private: |
65 std::unique_ptr<uint8_t[]> Buffer; | 67 std::unique_ptr<uint8_t[]> Buffer; |
66 SizeT BufferSize; | 68 SizeT BufferSize; |
67 }; | 69 }; |
68 } | 70 } |
| 71 |
| 72 #endif // ALLOW_WASM |
| 73 |
69 #endif // SUBZERO_SRC_WASMTRANSLATOR_H | 74 #endif // SUBZERO_SRC_WASMTRANSLATOR_H |
OLD | NEW |