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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 class IncrementalMarking; 2640 class IncrementalMarking;
2641 2641
2642 2642
2643 // FixedArray describes fixed-sized arrays with element type Object*. 2643 // FixedArray describes fixed-sized arrays with element type Object*.
2644 class FixedArray: public FixedArrayBase { 2644 class FixedArray: public FixedArrayBase {
2645 public: 2645 public:
2646 // Setter and getter for elements. 2646 // Setter and getter for elements.
2647 inline Object* get(int index) const; 2647 inline Object* get(int index) const;
2648 static inline Handle<Object> get(FixedArray* array, int index, 2648 static inline Handle<Object> get(FixedArray* array, int index,
2649 Isolate* isolate); 2649 Isolate* isolate);
2650 template <class T>
2651 MaybeHandle<T> GetValueOrNull(int index) const;
bradnelson 2016/06/27 22:28:47 Optional. I've noticed a few other places these mi
2652
2653 template <class T>
2654 Handle<T> GetValue(int index) const;
2655
2650 // Setter that uses write barrier. 2656 // Setter that uses write barrier.
2651 inline void set(int index, Object* value); 2657 inline void set(int index, Object* value);
2652 inline bool is_the_hole(int index); 2658 inline bool is_the_hole(int index);
2653 2659
2654 // Setter that doesn't need write barrier. 2660 // Setter that doesn't need write barrier.
2655 inline void set(int index, Smi* value); 2661 inline void set(int index, Smi* value);
2656 // Setter with explicit barrier mode. 2662 // Setter with explicit barrier mode.
2657 inline void set(int index, Object* value, WriteBarrierMode mode); 2663 inline void set(int index, Object* value, WriteBarrierMode mode);
2658 2664
2659 // Setters for frequently used oddballs located in old space. 2665 // Setters for frequently used oddballs located in old space.
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
4362 4368
4363 // ByteArray represents fixed sized byte arrays. Used for the relocation info 4369 // ByteArray represents fixed sized byte arrays. Used for the relocation info
4364 // that is attached to code objects. 4370 // that is attached to code objects.
4365 class ByteArray: public FixedArrayBase { 4371 class ByteArray: public FixedArrayBase {
4366 public: 4372 public:
4367 inline int Size(); 4373 inline int Size();
4368 4374
4369 // Setter and getter. 4375 // Setter and getter.
4370 inline byte get(int index); 4376 inline byte get(int index);
4371 inline void set(int index, byte value); 4377 inline void set(int index, byte value);
4378 inline const byte* data() const;
4372 4379
4373 // Copy in / copy out whole byte slices. 4380 // Copy in / copy out whole byte slices.
4374 inline void copy_out(int index, byte* buffer, int length); 4381 inline void copy_out(int index, byte* buffer, int length);
4375 inline void copy_in(int index, const byte* buffer, int length); 4382 inline void copy_in(int index, const byte* buffer, int length);
4376 4383
4377 // Treat contents as an int array. 4384 // Treat contents as an int array.
4378 inline int get_int(int index); 4385 inline int get_int(int index);
4379 inline void set_int(int index, int value); 4386 inline void set_int(int index, int value);
4380 4387
4381 static int SizeFor(int length) { 4388 static int SizeFor(int length) {
(...skipping 6447 matching lines...) Expand 10 before | Expand all | Expand 10 after
10829 } 10836 }
10830 return value; 10837 return value;
10831 } 10838 }
10832 }; 10839 };
10833 10840
10834 10841
10835 } // NOLINT, false-positive due to second-order macros. 10842 } // NOLINT, false-positive due to second-order macros.
10836 } // NOLINT, false-positive due to second-order macros. 10843 } // NOLINT, false-positive due to second-order macros.
10837 10844
10838 #endif // V8_OBJECTS_H_ 10845 #endif // V8_OBJECTS_H_
OLDNEW
« 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