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

Unified Diff: src/objects.h

Issue 1912103002: [wasm] Store function names in the wasm object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-2
Patch Set: fix gcmole and signed/unsigned comparison issue 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/objects.h
diff --git a/src/objects.h b/src/objects.h
index d4590e25fecc35ea1b995fd334cc03a76f02d5fe..2a0bbeedc3f27fe78208e8e78b22f3b477a982d0 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -435,6 +435,7 @@ const int kStubMinorKeyBits = kSmiValueSize - kStubMajorKeyBits - 1;
V(JS_WEAK_SET_TYPE) \
V(JS_PROMISE_TYPE) \
V(JS_REGEXP_TYPE) \
+ V(JS_WASM_TYPE) \
Michael Starzinger 2016/04/22 11:59:35 As discussed offline: Let's try to get by without
Clemens Hammacher 2016/04/22 14:38:40 Definitely! :)
\
V(JS_BOUND_FUNCTION_TYPE) \
V(JS_FUNCTION_TYPE) \
@@ -728,6 +729,7 @@ enum InstanceType {
JS_PROMISE_TYPE,
JS_REGEXP_TYPE,
JS_BOUND_FUNCTION_TYPE,
+ JS_WASM_TYPE,
JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE
// Pseudo-types
@@ -4418,10 +4420,13 @@ class ByteArray: public FixedArrayBase {
// Setter and getter.
inline byte get(int index);
+ inline void get(int index, byte* buffer, int length);
inline void set(int index, byte value);
+ inline void set(int index, const byte* buffer, int length);
// Treat contents as an int array.
inline int get_int(int index);
+ inline void set_int(int index, int value);
static int SizeFor(int length) {
return OBJECT_POINTER_ALIGN(kHeaderSize + length);

Powered by Google App Engine
This is Rietveld 408576698