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

Unified Diff: src/wasm/wasm-opcodes.h

Issue 1911313002: Pass debug name as Vector instead of const char* (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-1
Patch Set: rebase 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/vector.h ('k') | test/cctest/compiler/codegen-tester.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-opcodes.h
diff --git a/src/wasm/wasm-opcodes.h b/src/wasm/wasm-opcodes.h
index 1a3aa9cf2a3610b69ed358c957e14a2dabece652..7b5ed9cbf4d460a2ef70f9be4cfdd3665db32c22 100644
--- a/src/wasm/wasm-opcodes.h
+++ b/src/wasm/wasm-opcodes.h
@@ -52,6 +52,10 @@ std::ostream& operator<<(std::ostream& os, const FunctionSig& function);
struct WasmName {
const char* name;
uint32_t length;
+ // TODO(clemensh): Remove whole WasmName, replace by Vector<const char>
+ inline Vector<const char> toVec() const {
titzer 2016/04/26 12:45:57 We don't need this little helper function. Either
Clemens Hammacher 2016/04/26 12:58:52 Sorry, forgot to mention that. The TODO will be ha
+ return Vector<const char>(name, length);
+ }
};
// TODO(titzer): Renumber all the opcodes to fill in holes.
« no previous file with comments | « src/vector.h ('k') | test/cctest/compiler/codegen-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698