Home
last modified time | relevance | path

Searched refs:source_hash (Results 1 - 10 of 10) sorted by relevance

/third_party/node/deps/v8/src/objects/
H A Dlookup-cache-inl.h19 uint32_t source_hash = static_cast<uint32_t>(source.ptr()) >> kTaggedSizeLog2; in Hash() local
21 return (source_hash ^ name_hash) % kLength; in Hash()
/third_party/python/Lib/
H A Dpy_compile.py165 source_hash = importlib.util.source_hash(source_bytes)
168 source_hash,
H A Dzipimport.py656 source_hash = _imp.source_hash(
662 data, source_hash, fullname, exc_details)
/third_party/python/Lib/importlib/
H A D_bootstrap_external.py703 def _validate_hash_pyc(data, source_hash, name, exc_details):
710 *source_hash* is the importlib.util.source_hash() of the source file.
720 if data[8:16] != source_hash:
750 def _code_to_hash_pyc(code, source_hash, checked=True):
755 assert len(source_hash) == 8
756 data.extend(source_hash)
1017 source_hash = None
1050 source_hash = _imp.source_hash(
[all...]
H A Dutil.py22 def source_hash(source_bytes): function
24 return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes)
/third_party/node/deps/v8/src/snapshot/
H A Dcode-serializer.h95 uint32_t source_hash() const { return source_hash_; } in source_hash() function in v8::internal::SerializedCodeSanityCheckResult::CodeSerializer
98 CodeSerializer(Isolate* isolate, uint32_t source_hash);
H A Dcode-serializer.cc46 CodeSerializer::CodeSerializer(Isolate* isolate, uint32_t source_hash) in CodeSerializer() argument
48 source_hash_(source_hash) {} in CodeSerializer()
595 SetHeaderValue(kSourceHashOffset, cs->source_hash()); in SerializedCodeData()
619 uint32_t source_hash = GetHeaderValue(kSourceHashOffset); in SanityCheckJustSource() local
620 if (source_hash != expected_source_hash) { in SanityCheckJustSource()
/third_party/python/Lib/test/
H A Dtest_zipimport.py195 source_hash = importlib.util.source_hash(source)
198 source_hash,
210 source_hash = importlib.util.source_hash(source)
213 source_hash,
H A Dtest_imp.py354 self.assertEqual(_imp.source_hash(42, b'hi'), b'\xfb\xd9G\x05\xaf$\x9b~')
355 self.assertEqual(_imp.source_hash(43, b'hi'), b'\xd0/\x87C\xccC\xff\xe2')
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_file_loader.py267 self.util.source_hash(b'state = "new"'),
322 self.util.source_hash(b'state = "old"'),
353 self.util.source_hash(b'state = "new"'),

Completed in 10 milliseconds