Chromium Code Reviews| Index: src/WasmTranslator.h |
| diff --git a/src/WasmTranslator.h b/src/WasmTranslator.h |
| index 4a23bc1d656119d27e7c5bd449082a635f88f635..1bc48803868993d5a46b8a8bfb8decbae0e12122 100644 |
| --- a/src/WasmTranslator.h |
| +++ b/src/WasmTranslator.h |
| @@ -20,11 +20,22 @@ |
| #include "IceGlobalContext.h" |
| #include "IceTranslator.h" |
| +#ifdef __clang__ |
| +#pragma clang diagnostic push |
| +#pragma clang diagnostic ignored "-Wunused-parameter" |
| +#endif // __clang__ |
| + |
| +#include "llvm/Support/StreamingMemoryObject.h" |
| + |
| +#ifdef __clang__ |
| +#pragma clang diagnostic pop |
| +#endif // __clang__ |
| + |
| namespace v8 { |
| namespace internal { |
| class Zone; |
| namespace wasm { |
| -class FunctionEnv; |
| +struct FunctionBody; |
| } // end of namespace wasm |
| } // end of namespace internal |
| } // end of namespace v8 |
| @@ -52,16 +63,10 @@ public: |
| /// Translates a single Wasm function. |
| /// |
| /// Parameters: |
| - /// Zone - an arena for the V8 code to allocate from. |
| - /// Env - information about the function (signature, variable count, etc.). |
| - /// Base - a pointer to the start of the Wasm module. |
| - /// Start - a pointer to the start of the function within the module. |
| - /// End - a pointer to the end of the function. |
| - std::unique_ptr<Cfg> translateFunction(v8::internal::Zone *Zone, |
| - v8::internal::wasm::FunctionEnv *Env, |
| - const uint8_t *Base, |
| - const uint8_t *Start, |
| - const uint8_t *End); |
| + /// Body - information about the function to translate |
|
Jim Stichnoth
2016/04/14 20:03:44
Keep the documentation of Zone?
Eric Holk
2016/04/15 15:24:27
Oops. It's back now.
|
| + std::unique_ptr<Cfg> |
| + translateFunction(v8::internal::Zone *Zone, |
| + v8::internal::wasm::FunctionBody &Body); |
| private: |
| std::unique_ptr<uint8_t[]> Buffer; |