Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
80 // Copy the register locations from the code generator's frame.
82 // deferred code and restored on exit.
102 DeferredCode* code = deferred_.RemoveLast();
103 ASSERT(masm_ == code->masm());
104 // Record position of deferred code stub.
105 masm_->RecordStatementPosition(code->statement_position());
106 if (code->position() != RelocInfo::kNoPosition) {
107 masm_->RecordPosition(code->position());
109 // Generate the code.
110 Comment cmnt(masm_, code->comment());
111 masm_->bind(code->entry_label());
112 code->SaveRegisters();
113 code->Generate();
114 code->RestoreRegisters();
115 masm_->jmp(code->exit_label());
168 PrintF("*** Generate code for %s function: ", ftype);
191 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
192 Code::Flags flags,
194 // Allocate and install the code.
198 Handle<Code> code =
206 // Print the source code if available.
222 PrintF("--- Code ---\n");
223 code->Disassemble(*function->name()->ToCString());
227 if (!code.is_null()) {
228 Counters::total_compiled_code_size.Increment(code->instruction_size());
230 return code;
234 // Generate the code. Takes a function literal, generates code for it, assemble
235 // all the pieces into a Code object. This function is only to be called by
236 // the compiler.cc code.
237 Handle<Code> CodeGenerator::MakeCode(CompilationInfo* info) {
245 // Generate code.
254 return Handle<Code>::null();
258 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, in_loop);
259 Handle<Code> result = MakeCodeEpilogue(cgen.masm(), flags, info);
282 Handle<Code> CodeGenerator::ComputeCallInitialize(
289 // information, and the IC clearing code can't generate a stub
293 CALL_HEAP_FUNCTION(StubCache::ComputeCallInitialize(argc, in_loop), Code);
347 // Invoke the platform-dependent code generator to do the actual
519 bool ApiGetterEntryStub::GetCustomCache(Code** code_out) {
524 *code_out = Code::cast(cache);
530 void ApiGetterEntryStub::SetCustomCache(Code* value) {