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

Side by Side Diff: src/lithium.cc

Issue 308593003: Simplify known successor block lowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('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 "v8.h" 5 #include "v8.h"
6 #include "lithium.h" 6 #include "lithium.h"
7 #include "scopes.h" 7 #include "scopes.h"
8 #include "serialize.h" 8 #include "serialize.h"
9 9
10 #if V8_TARGET_ARCH_IA32 10 #if V8_TARGET_ARCH_IA32
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 // Recursively store all the nested captured objects into the environment 605 // Recursively store all the nested captured objects into the environment
606 for (int i = is_arguments ? 1 : 0; i < length; ++i) { 606 for (int i = is_arguments ? 1 : 0; i < length; ++i) {
607 HValue* arg_value = value->OperandAt(i); 607 HValue* arg_value = value->OperandAt(i);
608 if (arg_value->IsArgumentsObject() || arg_value->IsCapturedObject()) { 608 if (arg_value->IsArgumentsObject() || arg_value->IsCapturedObject()) {
609 AddObjectToMaterialize(arg_value, objects_to_materialize, result); 609 AddObjectToMaterialize(arg_value, objects_to_materialize, result);
610 } 610 }
611 } 611 }
612 } 612 }
613 613
614 614
615 LInstruction* LChunkBuilder::CheckElideControlInstruction(
616 HControlInstruction* instr) {
617 HBasicBlock* successor;
618 if (!instr->KnownSuccessorBlock(&successor)) return NULL;
619 return new(zone()) LGoto(successor);
620 }
621
622
623 LPhase::~LPhase() { 615 LPhase::~LPhase() {
624 if (ShouldProduceTraceOutput()) { 616 if (ShouldProduceTraceOutput()) {
625 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 617 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
626 } 618 }
627 } 619 }
628 620
629 621
630 } } // namespace v8::internal 622 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698