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

Side by Side Diff: src/hydrogen.cc

Issue 1332873003: Implement sloppy-mode block-defined functions (Annex B 3.3) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve type clarity Created 5 years, 3 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
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 4771 matching lines...) Expand 10 before | Expand all | Expand 10 after
4782 } 4782 }
4783 4783
4784 4784
4785 void HOptimizedGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) { 4785 void HOptimizedGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) {
4786 DCHECK(!HasStackOverflow()); 4786 DCHECK(!HasStackOverflow());
4787 DCHECK(current_block() != NULL); 4787 DCHECK(current_block() != NULL);
4788 DCHECK(current_block()->HasPredecessor()); 4788 DCHECK(current_block()->HasPredecessor());
4789 } 4789 }
4790 4790
4791 4791
4792 void HOptimizedGraphBuilder::VisitSloppyBlockFunctionStatement(
4793 SloppyBlockFunctionStatement* stmt) {
4794 Visit(stmt->statement());
4795 }
4796
4797
4792 void HOptimizedGraphBuilder::VisitIfStatement(IfStatement* stmt) { 4798 void HOptimizedGraphBuilder::VisitIfStatement(IfStatement* stmt) {
4793 DCHECK(!HasStackOverflow()); 4799 DCHECK(!HasStackOverflow());
4794 DCHECK(current_block() != NULL); 4800 DCHECK(current_block() != NULL);
4795 DCHECK(current_block()->HasPredecessor()); 4801 DCHECK(current_block()->HasPredecessor());
4796 if (stmt->condition()->ToBooleanIsTrue()) { 4802 if (stmt->condition()->ToBooleanIsTrue()) {
4797 Add<HSimulate>(stmt->ThenId()); 4803 Add<HSimulate>(stmt->ThenId());
4798 Visit(stmt->then_statement()); 4804 Visit(stmt->then_statement());
4799 } else if (stmt->condition()->ToBooleanIsFalse()) { 4805 } else if (stmt->condition()->ToBooleanIsFalse()) {
4800 Add<HSimulate>(stmt->ElseId()); 4806 Add<HSimulate>(stmt->ElseId());
4801 Visit(stmt->else_statement()); 4807 Visit(stmt->else_statement());
(...skipping 8750 matching lines...) Expand 10 before | Expand all | Expand 10 after
13552 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13558 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13553 } 13559 }
13554 13560
13555 #ifdef DEBUG 13561 #ifdef DEBUG
13556 graph_->Verify(false); // No full verify. 13562 graph_->Verify(false); // No full verify.
13557 #endif 13563 #endif
13558 } 13564 }
13559 13565
13560 } // namespace internal 13566 } // namespace internal
13561 } // namespace v8 13567 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698