Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: src/full-codegen.cc

Issue 15941004: Make (most of) --trace-codegen available in release mode. Better output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added colon Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 #define __ ACCESS_MASM(masm()) 298 #define __ ACCESS_MASM(masm())
299 299
300 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 300 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
301 Isolate* isolate = info->isolate(); 301 Isolate* isolate = info->isolate();
302 Handle<Script> script = info->script(); 302 Handle<Script> script = info->script();
303 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 303 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
304 int len = String::cast(script->source())->length(); 304 int len = String::cast(script->source())->length();
305 isolate->counters()->total_full_codegen_source_size()->Increment(len); 305 isolate->counters()->total_full_codegen_source_size()->Increment(len);
306 } 306 }
307 if (FLAG_trace_codegen) { 307 CodeGenerator::MakeCodePrologue(info, "full");
308 PrintF("Full Compiler - ");
309 }
310 CodeGenerator::MakeCodePrologue(info);
311 const int kInitialBufferSize = 4 * KB; 308 const int kInitialBufferSize = 4 * KB;
312 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize); 309 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize);
313 #ifdef ENABLE_GDB_JIT_INTERFACE 310 #ifdef ENABLE_GDB_JIT_INTERFACE
314 masm.positions_recorder()->StartGDBJITLineInfoRecording(); 311 masm.positions_recorder()->StartGDBJITLineInfoRecording();
315 #endif 312 #endif
316 LOG_CODE_EVENT(isolate, 313 LOG_CODE_EVENT(isolate,
317 CodeStartLinePosInfoRecordEvent(masm.positions_recorder())); 314 CodeStartLinePosInfoRecordEvent(masm.positions_recorder()));
318 315
319 FullCodeGenerator cgen(&masm, info); 316 FullCodeGenerator cgen(&masm, info);
320 cgen.Generate(); 317 cgen.Generate();
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 } 1600 }
1604 1601
1605 return false; 1602 return false;
1606 } 1603 }
1607 1604
1608 1605
1609 #undef __ 1606 #undef __
1610 1607
1611 1608
1612 } } // namespace v8::internal 1609 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698