| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/lithium.h" | 7 #include "src/lithium.h" |
| 8 #include "src/scopes.h" | 8 #include "src/scopes.h" |
| 9 #include "src/serialize.h" | 9 #include "src/serialize.h" |
| 10 | 10 |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 } | 450 } |
| 451 | 451 |
| 452 chunk->set_allocated_double_registers( | 452 chunk->set_allocated_double_registers( |
| 453 allocator.assigned_double_registers()); | 453 allocator.assigned_double_registers()); |
| 454 | 454 |
| 455 return chunk; | 455 return chunk; |
| 456 } | 456 } |
| 457 | 457 |
| 458 | 458 |
| 459 Handle<Code> LChunk::Codegen() { | 459 Handle<Code> LChunk::Codegen() { |
| 460 MacroAssembler assembler(info()->isolate(), NULL, 0); | 460 MacroAssembler assembler(info()->isolate(), NULL, |
| 461 Assembler::kMinimalBufferSize); |
| 461 LOG_CODE_EVENT(info()->isolate(), | 462 LOG_CODE_EVENT(info()->isolate(), |
| 462 CodeStartLinePosInfoRecordEvent( | 463 CodeStartLinePosInfoRecordEvent( |
| 463 assembler.positions_recorder())); | 464 assembler.positions_recorder())); |
| 464 // TODO(yangguo) remove this once the code serializer handles code stubs. | 465 // TODO(yangguo) remove this once the code serializer handles code stubs. |
| 465 if (info()->will_serialize()) assembler.enable_serializer(); | 466 if (info()->will_serialize()) assembler.enable_serializer(); |
| 466 LCodeGen generator(this, &assembler, info()); | 467 LCodeGen generator(this, &assembler, info()); |
| 467 | 468 |
| 468 MarkEmptyBlocks(); | 469 MarkEmptyBlocks(); |
| 469 | 470 |
| 470 if (generator.GenerateCode()) { | 471 if (generator.GenerateCode()) { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 643 |
| 643 | 644 |
| 644 LPhase::~LPhase() { | 645 LPhase::~LPhase() { |
| 645 if (ShouldProduceTraceOutput()) { | 646 if (ShouldProduceTraceOutput()) { |
| 646 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 647 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 647 } | 648 } |
| 648 } | 649 } |
| 649 | 650 |
| 650 | 651 |
| 651 } } // namespace v8::internal | 652 } } // namespace v8::internal |
| OLD | NEW |