Home
last modified time | relevance | path

Searched refs:new_code (Results 1 – 16 of 16) sorted by relevance

/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_code.py193 def new_code(c): function
198 code = new_code(f.__code__)
281 new_code = code.replace(**{attr: value})
282 self.assertEqual(getattr(new_code, attr), value)
284 new_code = code.replace(co_varnames=code2.co_varnames,
286 self.assertEqual(new_code.co_varnames, code2.co_varnames)
287 self.assertEqual(new_code.co_nlocals, code2.co_nlocals)
338 new_code = code = func.__code__.replace(co_linetable=b'')
339 self.assertEqual(list(new_code.co_lines()), [])
426 new_code = func.__code__.replace(co_linetable=b'')
[all …]
/aosp_15_r20/art/runtime/
H A Dinstrumentation.cc260 static void UpdateEntryPoints(ArtMethod* method, const void* new_code) in UpdateEntryPoints() argument
264 CHECK(CanHandleInitializationCheck(new_code)); in UpdateEntryPoints()
267 if (jit != nullptr && jit->GetCodeCache()->ContainsPc(new_code)) { in UpdateEntryPoints()
270 CHECK_EQ(reinterpret_cast<uintptr_t>(new_code) & 1, 1u); in UpdateEntryPoints()
275 CHECK(CodeSupportsEntryExitHooks(new_code, method)); in UpdateEntryPoints()
278 CHECK_EQ(new_code, GetQuickToInterpreterBridge()); in UpdateEntryPoints()
282 if (current_entry_point == new_code) { in UpdateEntryPoints()
291 uintptr_t new_value = reinterpret_cast<uintptr_t>(new_code); in UpdateEntryPoints()
1207 void Instrumentation::UpdateMethodsCodeImpl(ArtMethod* method, const void* new_code) { in UpdateMethodsCodeImpl() argument
1211 UpdateEntryPoints(method, new_code); in UpdateMethodsCodeImpl()
[all …]
H A Dinstrumentation.h330 void UpdateMethodsCode(ArtMethod* method, const void* new_code)
334 void UpdateNativeMethodsCodeToJitCode(ArtMethod* method, const void* new_code)
670 void UpdateMethodsCodeImpl(ArtMethod* method, const void* new_code)
/aosp_15_r20/external/tensorflow/tensorflow/python/autograph/pyct/
H A Dparser.py111 new_code = tokenize.untokenize(tokens)
118 for line, new_line in zip(code_string.split('\n'), new_code.split('\n')):
126 new_code = '\n'.join(dedented_code)
128 return new_code
/aosp_15_r20/external/tensorflow/tensorflow/tools/compatibility/
H A Dipynb.py164 new_code = [updated_code_lines[idx] for idx in applicable_lines]
166 cell["source"] = "\n".join(new_code).replace("###!!!", "").replace(
/aosp_15_r20/external/tensorflow/tensorflow/python/platform/
H A Dbenchmark.py56 new_code = types.CodeType(
63 new_code = types.CodeType(arg_num, 0, func_code.co_nlocals,
71 return types.FunctionType(new_code, f.__globals__, name, f.__defaults__,
/aosp_15_r20/external/pytorch/torch/_dynamo/
H A Dresume_execution.py542 new_code = transform_code_object(code, update)
543 ContinueExecutionCache.generated_code_metadata[new_code] = meta
544 return new_code
H A Dtypes.py94 self, code: types.CodeType, new_code: types.CodeType
H A Dcompiled_autograd.py482 new_code = f"{node_name}{maybe_aot_id} (NodeCall {nodecall_index})"
485 "raw_stack_trace = CapturedTraceback.extract().format()[-1]", new_code
H A Dsymbolic_convert.py2910 new_code: types.CodeType = ContinueExecutionCache.lookup(
2930 code_context.get_context(new_code)["orig_graphmodule"] = weakref.ref(
2934 if new_code.co_freevars:
2936 self.output.install_global_unsafe(name, new_code)
2937 cg.make_function_with_closure(name, new_code, True, stack_len)
2941 name, types.FunctionType(new_code, self.f_globals, name)
/aosp_15_r20/external/rust/android-crates-io/crates/miette-derive/src/
Ddiagnostic.rs113 DiagnosticArg::Code(new_code) => { in add_args()
120 self.code = Some(new_code); in add_args()
/aosp_15_r20/external/ublksrv/lib/
H A Dublksrv_cmd.c352 unsigned new_code = legacy_op_to_ioctl(cmd_op); in __ublksrv_ctrl_get_info() local
353 int ret = __ublksrv_ctrl_get_info_no_trans(dev, new_code); in __ublksrv_ctrl_get_info()
/aosp_15_r20/external/sdk-platform-java/gapic-generator-java/
H A DREADME.md1 …is_gapic-generator-java&metric=coverage)](https://sonarcloud.io/summary/new_code?id=googleapis_gap…
/aosp_15_r20/external/sdk-platform-java/
H A DREADME.md1 …is_gapic-generator-java&metric=coverage)](https://sonarcloud.io/summary/new_code?id=googleapis_gap…
/aosp_15_r20/external/pytorch/torch/fx/
H A D_symbolic_trace.py189 new_code = CodeType(*co_args) # type: ignore[arg-type]
191 new_code, fn.__globals__, fn.__name__, fn.__defaults__, fn.__closure__
/aosp_15_r20/art/runtime/gc/space/
H A Dimage_space.cc1423 const void* new_code = forward_code(old_code); in RelocateInPlace() local
1424 if (old_code != new_code) { in RelocateInPlace()
1425 method.SetEntryPointFromQuickCompiledCode(new_code); in RelocateInPlace()