5#ifndef V8_PARSING_PREPARSE_DATA_IMPL_H_
6#define V8_PARSING_PREPARSE_DATA_IMPL_H_
29 uint8_t
get(
int index)
const {
return data_->
at(index); }
55 : consumed_data_(consumed_data) {
58 consumed_data->has_data_ =
true;
62 :
ReadingScope(parent->scope_data_.get(), parent->GetScopeData()) {}
65 consumed_data_->has_data_ =
false;
107 bool has_another_byte;
111 value |=
static_cast<int32_t
>(
byte & 0x7F) << shift;
113 has_another_byte =
byte & 0x80;
114 }
while (has_another_byte);
152 bool has_data_ =
false;
165 Zone* zone,
int start_position,
int* end_position,
int* num_parameters,
166 int* function_length,
int* num_inner_functions,
bool* uses_super_property,
174 bool VerifyDataStart();
235 Zone* zone,
int children_length) {
#define DISALLOW_GARBAGE_COLLECTION(name)
union v8::internal::@341::BuiltinMetadata::KindSpecificData data
ByteData * consumed_data_
ReadingScope(BaseConsumedPreparseData< Data > *parent)
ReadingScope(ByteData *consumed_data, Data data)
size_t RemainingBytes() const
void SetPosition(int position)
bool HasRemainingBytes(size_t bytes) const
virtual Data GetScopeData()=0
void RestoreDataForVariable(Variable *var)
BaseConsumedPreparseData(const BaseConsumedPreparseData &)=delete
virtual ProducedPreparseData * GetChildData(Zone *zone, int child_index)=0
BaseConsumedPreparseData()
void RestoreDataForScope(Scope *scope, AstValueFactory *ast_value_factory, Zone *zone)
void RestoreDataForInnerScopes(Scope *scope, AstValueFactory *ast_value_factory, Zone *zone)
void RestoreScopeAllocationData(DeclarationScope *scope, AstValueFactory *ast_value_factory, Zone *zone) final
BaseConsumedPreparseData & operator=(const BaseConsumedPreparseData &)=delete
ProducedPreparseData * GetDataForSkippableFunction(Zone *zone, int start_position, int *end_position, int *num_parameters, int *function_length, int *num_inner_functions, bool *uses_super_property, LanguageMode *language_mode) final
std::unique_ptr< ByteData > scope_data_
Tagged< PreparseData > GetScopeData() final
OnHeapConsumedPreparseData(LocalIsolate *isolate, Handle< PreparseData > data)
Handle< PreparseData > data_
ProducedPreparseData * GetChildData(Zone *zone, int child_index) final
base::Vector< uint8_t > zone_byte_data_
ZonePreparseData * CopyToZone(Zone *zone, int children_length)
ZoneVectorWrapper scope_data_wrapper_
ZonePreparseData(const ZonePreparseData &)=delete
V8_EXPORT_PRIVATE ZonePreparseData(Zone *zone, base::Vector< uint8_t > *byte_data, int child_length)
void set_child(int index, ZonePreparseData *child)
ZoneVector< ZonePreparseData * > children_
ZonePreparseData & operator=(const ZonePreparseData &)=delete
int children_length() const
ZoneVector< uint8_t > * byte_data()
Handle< PreparseData > Serialize(Isolate *isolate)
ZonePreparseData * get_child(int index)
ZoneVector< uint8_t > byte_data_
uint8_t get(int index) const
ZoneVector< uint8_t > * data_
Inner(ZoneVector< uint8_t > *data)
const Inner * operator->() const
ZoneVectorWrapper()=default
ZoneVectorWrapper(ZoneVector< uint8_t > *data)
ZoneVector< RpoNumber > & result
#define DCHECK_LE(v1, v2)
#define DCHECK_NOT_NULL(val)
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)
#define V8_EXPORT_PRIVATE
static constexpr size_t kUint32Size
static constexpr size_t kUint8Size
static constexpr size_t kVarint32MinSize