Home | History | Annotate | Download | only in src

Lines Matching refs:Code

6 //     * Redistributions of source code must retain the above copyright
78 PrintF("[generating %s code for %s function: ", kind, ftype);
103 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
104 Code::Flags flags,
108 // Allocate and install the code.
111 Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION ||
114 Handle<Code> code =
117 if (!code.is_null()) {
119 code->instruction_size());
120 code->set_prologue_offset(info->prologue_offset());
122 return code;
126 void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) {
135 // Print the source code if available.
137 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
157 PrintF("--- Unoptimized code ---\n");
158 info->closure()->shared()->code()->Disassemble(
161 PrintF("--- Optimized code ---\n");
163 PrintF("--- Code ---\n");
167 code->Disassemble(CodeStub::MajorName(major_key, false));
169 code->Disassemble(*function->debug_name()->ToCString());