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

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: Code review feedback and 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
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | src/WasmTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/WasmTranslator.h
diff --git a/src/WasmTranslator.h b/src/WasmTranslator.h
index 4a23bc1d656119d27e7c5bd449082a635f88f635..7b023b30ec8da4c274ebfdff5ec2caee3c8f38e1 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
@@ -53,15 +64,10 @@ public:
///
/// 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
+ std::unique_ptr<Cfg>
+ translateFunction(v8::internal::Zone *Zone,
+ v8::internal::wasm::FunctionBody &Body);
private:
std::unique_ptr<uint8_t[]> Buffer;
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | src/WasmTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698