blob: c4f2e2bf787d22084de5655744f87e4e26a0a278 [file] [log] [blame]
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/objects/elements.h"
#include "src/handles/handles-inl.h"
#include "src/objects/objects-inl.h"
namespace v8 {
namespace internal {
inline void ElementsAccessor::CollectElementIndices(Handle<JSObject> object,
KeyAccumulator* keys) {
CollectElementIndices(object, handle(object->elements(), keys->isolate()),
inline MaybeHandle<FixedArray> ElementsAccessor::PrependElementIndices(
Handle<JSObject> object, Handle<FixedArray> keys, GetKeysConversion convert,
PropertyFilter filter) {
return PrependElementIndices(object,
handle(object->elements(), object->GetIsolate()),
keys, convert, filter);
inline bool ElementsAccessor::HasElement(JSObject holder, uint32_t index,
PropertyFilter filter) {
return HasElement(holder, index, holder.elements(), filter);
} // namespace internal
} // namespace v8