Home
last modified time | relevance | path

Searched refs:startup_data (Results 1 – 2 of 2) sorted by relevance

/external/v8/src/
Dstartup-data-util.cc44 void Load(const char* blob_file, v8::StartupData* startup_data, in Load() argument
46 ClearStartupData(startup_data); in Load()
57 startup_data->raw_size = static_cast<int>(ftell(file)); in Load()
60 startup_data->data = new char[startup_data->raw_size]; in Load()
61 int read_size = static_cast<int>(fread(const_cast<char*>(startup_data->data), in Load()
62 1, startup_data->raw_size, file)); in Load()
65 if (startup_data->raw_size == read_size) { in Load()
66 (*setter_fn)(startup_data); in Load()
/external/v8/src/snapshot/
Dsnapshot-common.cc55 Vector<const byte> startup_data = ExtractStartupData(blob); in Initialize() local
56 SnapshotData snapshot_data(startup_data); in Initialize()
61 int bytes = startup_data.length(); in Initialize()
168 Vector<const byte> startup_data = startup_snapshot.RawData(); in CreateSnapshotBlob() local
176 int startup_length = startup_data.length(); in CreateSnapshotBlob()
187 memcpy(data + kStartupDataOffset, startup_data.begin(), startup_length); in CreateSnapshotBlob()
214 const byte* startup_data = in ExtractStartupData() local
216 return Vector<const byte>(startup_data, startup_length); in ExtractStartupData()