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

Side by Side Diff: src/lithium.cc

Issue 14307006: Make it possible to Crankshaft all kinds of stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 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/lithium.h ('k') | src/log.cc » ('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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 return NULL; 435 return NULL;
436 } 436 }
437 437
438 chunk->set_allocated_double_registers( 438 chunk->set_allocated_double_registers(
439 allocator.assigned_double_registers()); 439 allocator.assigned_double_registers());
440 440
441 return chunk; 441 return chunk;
442 } 442 }
443 443
444 444
445 Handle<Code> LChunk::Codegen(Code::Kind kind) { 445 Handle<Code> LChunk::Codegen() {
446 MacroAssembler assembler(info()->isolate(), NULL, 0); 446 MacroAssembler assembler(info()->isolate(), NULL, 0);
447 LOG_CODE_EVENT(info()->isolate(), 447 LOG_CODE_EVENT(info()->isolate(),
448 CodeStartLinePosInfoRecordEvent( 448 CodeStartLinePosInfoRecordEvent(
449 assembler.positions_recorder())); 449 assembler.positions_recorder()));
450 LCodeGen generator(this, &assembler, info()); 450 LCodeGen generator(this, &assembler, info());
451 451
452 MarkEmptyBlocks(); 452 MarkEmptyBlocks();
453 453
454 if (generator.GenerateCode()) { 454 if (generator.GenerateCode()) {
455 if (FLAG_trace_codegen) { 455 if (FLAG_trace_codegen) {
456 PrintF("Crankshaft Compiler - "); 456 PrintF("Crankshaft Compiler - ");
457 } 457 }
458 CodeGenerator::MakeCodePrologue(info()); 458 CodeGenerator::MakeCodePrologue(info());
459 Code::Flags flags = Code::ComputeFlags(kind); 459 Code::Flags flags = info()->flags();
460 Handle<Code> code = 460 Handle<Code> code =
461 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info()); 461 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info());
462 generator.FinishCode(code); 462 generator.FinishCode(code);
463 463 code->set_is_crankshafted(true);
464 if (!code.is_null()) { 464 if (!code.is_null()) {
465 void* jit_handler_data = 465 void* jit_handler_data =
466 assembler.positions_recorder()->DetachJITHandlerData(); 466 assembler.positions_recorder()->DetachJITHandlerData();
467 LOG_CODE_EVENT(info()->isolate(), 467 LOG_CODE_EVENT(info()->isolate(),
468 CodeEndLinePosInfoRecordEvent(*code, jit_handler_data)); 468 CodeEndLinePosInfoRecordEvent(*code, jit_handler_data));
469 } 469 }
470 470
471 CodeGenerator::PrintCode(code, info()); 471 CodeGenerator::PrintCode(code, info());
472 return code; 472 return code;
473 } 473 }
(...skipping 12 matching lines...) Expand all
486 } else { 486 } else {
487 spill_slot_count_++; 487 spill_slot_count_++;
488 } 488 }
489 } 489 }
490 iterator.Advance(); 490 iterator.Advance();
491 } 491 }
492 } 492 }
493 493
494 494
495 } } // namespace v8::internal 495 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698