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

Side by Side Diff: src/lithium.cc

Issue 10824032: Enables V8 integration with the Intel VTune performance analysis tool. This allows the VTune profi… (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 4 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
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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 412 }
413 return NULL; 413 return NULL;
414 } 414 }
415 415
416 return chunk; 416 return chunk;
417 } 417 }
418 418
419 419
420 Handle<Code> LChunk::Codegen() { 420 Handle<Code> LChunk::Codegen() {
421 MacroAssembler assembler(info()->isolate(), NULL, 0); 421 MacroAssembler assembler(info()->isolate(), NULL, 0);
422 #ifdef ENABLE_VTUNE_JIT_INTERFACE
423 if (VTUNERUNNING)
424 assembler.positions_recorder()->StartVtuneJITLineInfoRecording();
425 #endif
422 LCodeGen generator(this, &assembler, info()); 426 LCodeGen generator(this, &assembler, info());
423 427
424 MarkEmptyBlocks(); 428 MarkEmptyBlocks();
425 429
426 if (generator.GenerateCode()) { 430 if (generator.GenerateCode()) {
427 if (FLAG_trace_codegen) { 431 if (FLAG_trace_codegen) {
428 PrintF("Crankshaft Compiler - "); 432 PrintF("Crankshaft Compiler - ");
429 } 433 }
430 CodeGenerator::MakeCodePrologue(info()); 434 CodeGenerator::MakeCodePrologue(info());
431 Code::Flags flags = Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); 435 Code::Flags flags = Code::ComputeFlags(Code::OPTIMIZED_FUNCTION);
432 Handle<Code> code = 436 Handle<Code> code =
433 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info()); 437 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info());
434 generator.FinishCode(code); 438 generator.FinishCode(code);
439 #ifdef ENABLE_VTUNE_JIT_INTERFACE
440 if (VTUNERUNNING) {
441 if (!code.is_null()) {
442 VtuneJITLineInfo* vtunelineinfo =
443 assembler.positions_recorder()->DetachVtuneJITLineInfo();
444
445 VTUNEJIT(RegisterDetailedLineInfo(*code, vtunelineinfo));
446 }
447 }
448 #endif
435 CodeGenerator::PrintCode(code, info()); 449 CodeGenerator::PrintCode(code, info());
436 return code; 450 return code;
437 } 451 }
438 return Handle<Code>::null(); 452 return Handle<Code>::null();
439 } 453 }
440 454
441 455
442 } } // namespace v8::internal 456 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698