OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 | 642 |
643 if (FLAG_eliminate_empty_blocks) { | 643 if (FLAG_eliminate_empty_blocks) { |
644 chunk->MarkEmptyBlocks(); | 644 chunk->MarkEmptyBlocks(); |
645 } | 645 } |
646 | 646 |
647 if (generator.GenerateCode()) { | 647 if (generator.GenerateCode()) { |
648 if (FLAG_trace_codegen) { | 648 if (FLAG_trace_codegen) { |
649 PrintF("Crankshaft Compiler - "); | 649 PrintF("Crankshaft Compiler - "); |
650 } | 650 } |
651 CodeGenerator::MakeCodePrologue(info); | 651 CodeGenerator::MakeCodePrologue(info); |
652 Code::Flags flags = | 652 Code::Flags flags = Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); |
653 Code::ComputeFlags(Code::OPTIMIZED_FUNCTION, NOT_IN_LOOP); | |
654 Handle<Code> code = | 653 Handle<Code> code = |
655 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info); | 654 CodeGenerator::MakeCodeEpilogue(&assembler, flags, info); |
656 generator.FinishCode(code); | 655 generator.FinishCode(code); |
657 CodeGenerator::PrintCode(code, info); | 656 CodeGenerator::PrintCode(code, info); |
658 return code; | 657 return code; |
659 } | 658 } |
660 return Handle<Code>::null(); | 659 return Handle<Code>::null(); |
661 } | 660 } |
662 | 661 |
663 | 662 |
(...skipping 6149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6813 } | 6812 } |
6814 } | 6813 } |
6815 | 6814 |
6816 #ifdef DEBUG | 6815 #ifdef DEBUG |
6817 if (graph_ != NULL) graph_->Verify(); | 6816 if (graph_ != NULL) graph_->Verify(); |
6818 if (allocator_ != NULL) allocator_->Verify(); | 6817 if (allocator_ != NULL) allocator_->Verify(); |
6819 #endif | 6818 #endif |
6820 } | 6819 } |
6821 | 6820 |
6822 } } // namespace v8::internal | 6821 } } // namespace v8::internal |
OLD | NEW |