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

Side by Side Diff: src/lithium.cc

Issue 443023003: Allocate kMinimalBufferSize buffers in lithium (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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 // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698