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

Side by Side Diff: src/lithium.cc

Issue 446933003: We should never allocate a 0-sized buffer, so never grow from 0. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restore 0 as indication that you want kMinimalBufferSize 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 | « src/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.cc » ('j') | 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, 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
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
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698