Lines Matching refs:num_contexts
110 static uint32_t StartupSnapshotOffset(int num_contexts) { in StartupSnapshotOffset() argument
112 num_contexts * kInt32Size); in StartupSnapshotOffset()
144 size_t num_contexts = in HasContextSnapshot() local
146 return index < num_contexts; in HasContextSnapshot()
388 const int num_contexts = static_cast<int>(contexts->size()); in Create() local
390 context_snapshots.reserve(num_contexts); in Create()
396 for (int i = 0; i < num_contexts; i++) { in Create()
428 for (int i = 0; i < num_contexts; i++) { in Create()
499 uint32_t num_contexts = static_cast<uint32_t>(context_snapshots->size()); in CreateSnapshotBlob() local
501 SnapshotImpl::StartupSnapshotOffset(num_contexts); in CreateSnapshotBlob()
513 memset(data, 0, SnapshotImpl::StartupSnapshotOffset(num_contexts)); in CreateSnapshotBlob()
516 num_contexts); in CreateSnapshotBlob()
567 for (uint32_t i = 0; i < num_contexts; i++) { in CreateSnapshotBlob()
595 uint32_t num_contexts = GetHeaderValue(data, kNumberOfContextsOffset); in ExtractNumContexts() local
596 return num_contexts; in ExtractNumContexts()
648 uint32_t num_contexts = ExtractNumContexts(data); in ExtractStartupData() local
649 return ExtractData(data, StartupSnapshotOffset(num_contexts), in ExtractStartupData()
671 uint32_t num_contexts = ExtractNumContexts(data); in ExtractContextData() local
672 CHECK_LT(index, num_contexts); in ExtractContextData()
676 if (index == num_contexts - 1) { in ExtractContextData()