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

Unified Diff: src/WasmTranslator.h

Issue 1876413002: Subzero. WASM. Additional progress. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Merging with master Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698