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

Unified Diff: src/objects.h

Issue 2094563002: [wasm] Complete separation of compilation and instantiation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MaybeHandle Created 4 years, 6 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 43671a677ae769eed05ce29a506df03a7b958c1c..26d7551f44e560ff4fc97c9d7071172d52b62520 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2647,6 +2647,12 @@ class FixedArray: public FixedArrayBase {
inline Object* get(int index) const;
static inline Handle<Object> get(FixedArray* array, int index,
Isolate* isolate);
+ template <class T>
+ MaybeHandle<T> GetValueOrNull(int index) const;
bradnelson 2016/06/27 22:28:47 Optional. I've noticed a few other places these mi
+
+ template <class T>
+ Handle<T> GetValue(int index) const;
+
// Setter that uses write barrier.
inline void set(int index, Object* value);
inline bool is_the_hole(int index);
@@ -4369,6 +4375,7 @@ class ByteArray: public FixedArrayBase {
// Setter and getter.
inline byte get(int index);
inline void set(int index, byte value);
+ inline const byte* data() const;
// Copy in / copy out whole byte slices.
inline void copy_out(int index, byte* buffer, int length);
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/objects-inl.h » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698