Lines Matching refs:code

2 // Use of this source code is governed by a BSD-style license that can be
11 #include "src/compiler/code-assembler.h"
77 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN)
81 return scope.CloseAndEscape(code);
89 // to code targets without dereferencing their handles.
117 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN)
124 return *code;
131 // to code targets without dereferencing their handles.
142 Handle<Code> code = Factory::CodeBuilder(isolate, desc, CodeKind::BUILTIN)
146 return *code;
155 // to code targets without dereferencing their handles.
162 Handle<Code> code = compiler::CodeAssembler::GenerateCode(
165 return *code;
175 // to code targets without dereferencing their handles.
186 Handle<Code> code = compiler::CodeAssembler::GenerateCode(
189 return *code;
196 Code code) {
197 DCHECK_EQ(builtin, code.builtin_id());
198 builtins->set_code(builtin, ToCodeT(code));
217 // Replace references from all builtin code objects to placeholders.
229 Code code = FromCodeT(builtins->code(builtin));
231 code, UnprotectMemoryOrigin::kMainThread);
233 for (RelocIterator it(code, kRelocMask); !it.done(); it.next()) {
240 CodeT new_target = builtins->code(target.builtin_id());
249 CodeT new_target = builtins->code(target.builtin_id());
256 FlushInstructionCache(code.raw_instruction_start(),
257 code.raw_instruction_size());
268 Handle<Code> code = interpreter::GenerateBytecodeHandler(
271 return *code;
287 Code code;
289 code = BuildAdaptor(isolate, Builtin::k##Name, \
291 AddBuiltin(builtins, Builtin::k##Name, code); \
295 code = BuildWithCodeStubAssemblerJS( \
297 AddBuiltin(builtins, Builtin::k##Name, code); \
302 code = BuildWithCodeStubAssemblerCS( \
305 AddBuiltin(builtins, Builtin::k##Name, code); \
310 code = BuildWithCodeStubAssemblerCS(isolate, Builtin::k##Name, \
313 AddBuiltin(builtins, Builtin::k##Name, code); \
318 code = BuildWithCodeStubAssemblerCS( \
321 AddBuiltin(builtins, Builtin::k##Name, code); \
325 code = GenerateBytecodeHandler(isolate, Builtin::k##Name, OperandScale, \
327 AddBuiltin(builtins, Builtin::k##Name, code); \
331 code = BuildWithMacroAssembler(isolate, Builtin::k##Name, \
333 AddBuiltin(builtins, Builtin::k##Name, code); \
350 // TODO(v8:11880): avoid roundtrips between cdc and code.
352 FromCodeT(builtins->code(Builtin::k##Name)).set_is_promise_rejection(true);