Lines Matching refs:base
7 #include "src/base/functional.h"
8 #include "src/base/platform/platform.h"
9 #include "src/base/platform/wrappers.h"
148 using SpecialSectionPair = std::pair<base::Vector<const char>, SectionCode>;
150 {base::StaticCharVector(kNameString), kNameSectionCode},
151 {base::StaticCharVector(kSourceMappingURLString),
153 {base::StaticCharVector(kCompilationHintsString),
155 {base::StaticCharVector(kBranchHintsString), kBranchHintsSectionCode},
156 {base::StaticCharVector(kDebugInfoString), kDebugInfoSectionCode},
157 {base::StaticCharVector(kExternalDebugInfoString),
160 auto name_vec = base::Vector<const char>::cast(
161 base::VectorOf(section_name_start, string.length()));
192 base::Vector<const uint8_t> payload() const {
306 void DumpModule(const base::Vector<const byte> module_bytes) {
311 !base::OS::isDirectorySeparator(path[path.size() - 1])) {
312 path += base::OS::DirectorySeparator();
316 size_t hash = base::hash_range(module_bytes.begin(), module_bytes.end());
317 base::EmbeddedVector<char, 32> buf;
321 if (FILE* file = base::OS::FOpen(path.c_str(), "wb")) {
323 base::Fclose(file);
342 void DecodeModuleHeader(base::Vector<const uint8_t> bytes, uint8_t offset) {
394 base::Vector<const uint8_t> bytes, uint32_t offset,
1503 base::Vector<const byte> orig_bytes(start(), end() - start());
1504 DecodeModuleHeader(base::VectorOf(start(), end() - start()), offset);
2243 base::ElapsedTimer timer;
2245 base::ThreadTicks thread_ticks = base::ThreadTicks::IsSupported()
2246 ? base::ThreadTicks::Now()
2247 : base::ThreadTicks();
2256 (base::ThreadTicks::Now() - thread_ticks).InMicroseconds();
2292 void ModuleDecoder::DecodeModuleHeader(base::Vector<const uint8_t> bytes,
2298 base::Vector<const uint8_t> bytes,
2324 base::Vector<const uint8_t> bytes,
2370 base::Vector<const uint8_t> encoded_offsets) {
2517 NameMap DecodeNameMap(base::Vector<const uint8_t> module_bytes,
2549 IndirectNameMap DecodeIndirectNameMap(base::Vector<const uint8_t> module_bytes,