| OLD | NEW |
| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 LAllocator allocator(values, graph); | 408 LAllocator allocator(values, graph); |
| 409 LChunkBuilder builder(info, graph, &allocator); | 409 LChunkBuilder builder(info, graph, &allocator); |
| 410 LChunk* chunk = builder.Build(); | 410 LChunk* chunk = builder.Build(); |
| 411 if (chunk == NULL) return NULL; | 411 if (chunk == NULL) return NULL; |
| 412 | 412 |
| 413 if (!allocator.Allocate(chunk)) { | 413 if (!allocator.Allocate(chunk)) { |
| 414 info->set_bailout_reason(kNotEnoughVirtualRegistersRegalloc); | 414 info->set_bailout_reason(kNotEnoughVirtualRegistersRegalloc); |
| 415 return NULL; | 415 return NULL; |
| 416 } | 416 } |
| 417 | 417 |
| 418 chunk->set_allocated_double_registers( | 418 chunk->set_allocated_double_registers(allocator.assigned_double_registers()); |
| 419 allocator.assigned_double_registers()); | 419 chunk->set_safepoints_registers(allocator.modified_registers()); |
| 420 chunk->set_safepoints_double_registers(allocator.modified_double_registers()); |
| 420 | 421 |
| 421 return chunk; | 422 return chunk; |
| 422 } | 423 } |
| 423 | 424 |
| 424 | 425 |
| 425 Handle<Code> LChunk::Codegen() { | 426 Handle<Code> LChunk::Codegen() { |
| 426 MacroAssembler assembler(info()->isolate(), NULL, 0); | 427 MacroAssembler assembler(info()->isolate(), NULL, 0); |
| 427 LOG_CODE_EVENT(info()->isolate(), | 428 LOG_CODE_EVENT(info()->isolate(), |
| 428 CodeStartLinePosInfoRecordEvent( | 429 CodeStartLinePosInfoRecordEvent( |
| 429 assembler.positions_recorder())); | 430 assembler.positions_recorder())); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 | 609 |
| 609 | 610 |
| 610 LPhase::~LPhase() { | 611 LPhase::~LPhase() { |
| 611 if (ShouldProduceTraceOutput()) { | 612 if (ShouldProduceTraceOutput()) { |
| 612 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 613 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 613 } | 614 } |
| 614 } | 615 } |
| 615 | 616 |
| 616 | 617 |
| 617 } } // namespace v8::internal | 618 } } // namespace v8::internal |
| OLD | NEW |