Home
last modified time | relevance | path

Searched refs:source_hash (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py499 def _validate_hash_pyc(data, source_hash, name, exc_details): argument
516 if data[8:16] != source_hash:
546 def _code_to_hash_pyc(code, source_hash, checked=True): argument
551 assert len(source_hash) == 8
552 data.extend(source_hash)
803 source_hash = None
836 source_hash = _imp.source_hash(
840 _validate_hash_pyc(data, source_hash, fullname,
865 if source_hash is None:
866 source_hash = _imp.source_hash(source_bytes)
[all …]
Dutil.py22 def source_hash(source_bytes): function
24 return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes)
/external/v8/src/
Dlookup-cache-inl.h19 uint32_t source_hash = in Hash() local
23 return (source_hash ^ name_hash) % kLength; in Hash()
/external/python/cpython3/Lib/
Dpy_compile.py162 source_hash = importlib.util.source_hash(source_bytes)
165 source_hash,
/external/v8/src/snapshot/
Dcode-serializer.cc34 CodeSerializer::CodeSerializer(Isolate* isolate, uint32_t source_hash) in CodeSerializer() argument
35 : Serializer(isolate), source_hash_(source_hash) { in CodeSerializer()
400 SetHeaderValue(kSourceHashOffset, cs->source_hash()); in SerializedCodeData()
439 uint32_t source_hash = GetHeaderValue(kSourceHashOffset); in SanityCheck() local
446 if (source_hash != expected_source_hash) return SOURCE_MISMATCH; in SanityCheck()
Dcode-serializer.h57 uint32_t source_hash() const { return source_hash_; } in source_hash() function
60 CodeSerializer(Isolate* isolate, uint32_t source_hash);
/external/python/cpython3/Lib/test/
Dtest_imp.py336 self.assertEqual(_imp.source_hash(42, b'hi'), b'\xc6\xe7Z\r\x03:}\xab')
337 self.assertEqual(_imp.source_hash(43, b'hi'), b'\x85\x9765\xf8\x9a\x8b9')
Dtest_zipimport.py192 source_hash = importlib.util.source_hash(source)
195 source_hash,
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_file_loader.py268 self.util.source_hash(b'state = "new"'),
323 self.util.source_hash(b'state = "old"'),
354 self.util.source_hash(b'state = "new"'),
/external/python/cpython3/Doc/library/
Dimportlib.rst1563 .. function:: source_hash(source_bytes)
1566 the :func:`source_hash` of the corresponding source file's contents in its
/external/python/cpython3/Doc/whatsnew/
D3.7.rst1038 The new :func:`importlib.source_hash` can be used to compute the hash of