Revert "[*] MSVC link error on the primary v8 library"

This reverts commit c9b547e373.
This commit is contained in:
Reece Wilson 2022-09-18 07:54:56 +01:00
parent 465f778309
commit c0fd7eec04
3 changed files with 7 additions and 5 deletions

View File

@ -7,10 +7,7 @@
namespace v8 {
namespace internal {
Object FixedArray::get(int index) const {
PtrComprCageBase cage_base = GetPtrComprCageBase(*this);
return get(cage_base, index);
}
void FixedArray::set(int index, Smi value) {
DCHECK_NE(map(), EarlyGetReadOnlyRoots().unchecked_fixed_cow_array_map());

View File

@ -64,6 +64,11 @@ bool FixedArray::ContainsOnlySmisOrHoles() {
return true;
}
Object FixedArray::get(int index) const {
PtrComprCageBase cage_base = GetPtrComprCageBase(*this);
return get(cage_base, index);
}
Object FixedArray::get(PtrComprCageBase cage_base, int index) const {
DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
return TaggedField<Object>::Relaxed_Load(cage_base, *this,

View File

@ -102,7 +102,7 @@ class FixedArray
: public TorqueGeneratedFixedArray<FixedArray, FixedArrayBase> {
public:
// Setter and getter for elements.
Object get(int index) const;
inline Object get(int index) const;
inline Object get(PtrComprCageBase cage_base, int index) const;
static inline Handle<Object> get(FixedArray array, int index,