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, | 460 MacroAssembler assembler(info()->isolate(), NULL, 0); |
461 Assembler::kMinimalBufferSize); | |
462 LOG_CODE_EVENT(info()->isolate(), | 461 LOG_CODE_EVENT(info()->isolate(), |
463 CodeStartLinePosInfoRecordEvent( | 462 CodeStartLinePosInfoRecordEvent( |
464 assembler.positions_recorder())); | 463 assembler.positions_recorder())); |
465 // TODO(yangguo) remove this once the code serializer handles code stubs. | 464 // TODO(yangguo) remove this once the code serializer handles code stubs. |
466 if (info()->will_serialize()) assembler.enable_serializer(); | 465 if (info()->will_serialize()) assembler.enable_serializer(); |
467 LCodeGen generator(this, &assembler, info()); | 466 LCodeGen generator(this, &assembler, info()); |
468 | 467 |
469 MarkEmptyBlocks(); | 468 MarkEmptyBlocks(); |
470 | 469 |
471 if (generator.GenerateCode()) { | 470 if (generator.GenerateCode()) { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 642 |
644 | 643 |
645 LPhase::~LPhase() { | 644 LPhase::~LPhase() { |
646 if (ShouldProduceTraceOutput()) { | 645 if (ShouldProduceTraceOutput()) { |
647 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 646 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
648 } | 647 } |
649 } | 648 } |
650 | 649 |
651 | 650 |
652 } } // namespace v8::internal | 651 } } // namespace v8::internal |
OLD | NEW |