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

Side by Side Diff: src/lithium.cc

Issue 11552033: This patch is the propagation version of https://codereview.chromium.org/10824032 patch (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years 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
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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 info->set_bailout_reason("not enough virtual registers (regalloc)"); 409 info->set_bailout_reason("not enough virtual registers (regalloc)");
410 return NULL; 410 return NULL;
411 } 411 }
412 412
413 return chunk; 413 return chunk;
414 } 414 }
415 415
416 416
417 Handle<Code> LChunk::Codegen() { 417 Handle<Code> LChunk::Codegen() {
418 MacroAssembler assembler(info()->isolate(), NULL, 0); 418 MacroAssembler assembler(info()->isolate(), NULL, 0);
419 if (FLAG_jit_profile) {
420 JITCodeLineInfo* lineinfo = assembler.positions_recorder()->
421 InitializeJITLineInfo();
danno 2012/12/20 16:27:20 nit: indentation after line break, better yet brea
422 LOG_CODE_EVENT(info()->isolate(),
423 CodeStartLinePosInfoRecordEvent(lineinfo));
424 }
419 LCodeGen generator(this, &assembler, info()); 425 LCodeGen generator(this, &assembler, info());
420 426
421 MarkEmptyBlocks(); 427 MarkEmptyBlocks();
422 428
423 if (generator.GenerateCode()) { 429 if (generator.GenerateCode()) {
424 if (FLAG_trace_codegen) { 430 if (FLAG_trace_codegen) {
425 PrintF("Crankshaft Compiler - "); 431 PrintF("Crankshaft Compiler - ");
426 } 432 }
427 CodeGenerator::MakeCodePrologue(info()); 433 CodeGenerator::MakeCodePrologue(info());
428 Code::Flags flags = Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); 434 Code::Flags flags = Code::ComputeFlags(Code::OPTIMIZED_FUNCTION);
429 Handle<Code> code = 435 Handle<Code> code =
430 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info()); 436 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info());
431 generator.FinishCode(code); 437 generator.FinishCode(code);
438
439 if (FLAG_jit_profile) {
440 if (!code.is_null()) {
441 void* lineinfo = assembler.positions_recorder()->DetachJITLineInfo();
442 LOG_CODE_EVENT(info()->isolate(),
443 CodeEndLinePosInfoRecordEvent(*code, lineinfo));
444 }
445 }
432 CodeGenerator::PrintCode(code, info()); 446 CodeGenerator::PrintCode(code, info());
433 return code; 447 return code;
434 } 448 }
435 return Handle<Code>::null(); 449 return Handle<Code>::null();
436 } 450 }
437 451
438
danno 2012/12/20 16:27:20 nit: unrelated whitespace change
439 } } // namespace v8::internal 452 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698