Searched refs:source_hash (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap_external.py | 499 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 …]
|
D | util.py | 22 def source_hash(source_bytes): function 24 return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes)
|
/external/v8/src/ |
D | lookup-cache-inl.h | 19 uint32_t source_hash = in Hash() local 23 return (source_hash ^ name_hash) % kLength; in Hash()
|
/external/python/cpython3/Lib/ |
D | py_compile.py | 162 source_hash = importlib.util.source_hash(source_bytes) 165 source_hash,
|
/external/v8/src/snapshot/ |
D | code-serializer.cc | 34 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()
|
D | code-serializer.h | 57 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/ |
D | test_imp.py | 336 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')
|
D | test_zipimport.py | 192 source_hash = importlib.util.source_hash(source) 195 source_hash,
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 268 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/ |
D | importlib.rst | 1563 .. function:: source_hash(source_bytes) 1566 the :func:`source_hash` of the corresponding source file's contents in its
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.7.rst | 1038 The new :func:`importlib.source_hash` can be used to compute the hash of
|