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

Side by Side Diff: src/typing.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: An extra test and comment fix 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
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/typing.h" 5 #include "src/typing.h"
6 6
7 #include "src/frames.h" 7 #include "src/frames.h"
8 #include "src/frames-inl.h" 8 #include "src/frames-inl.h"
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void AstTyper::VisitExpressionStatement(ExpressionStatement* stmt) { 130 void AstTyper::VisitExpressionStatement(ExpressionStatement* stmt) {
131 RECURSE(Visit(stmt->expression())); 131 RECURSE(Visit(stmt->expression()));
132 } 132 }
133 133
134 134
135 void AstTyper::VisitEmptyStatement(EmptyStatement* stmt) { 135 void AstTyper::VisitEmptyStatement(EmptyStatement* stmt) {
136 } 136 }
137 137
138 138
139 void AstTyper::VisitDelegateStatement(DelegateStatement* stmt) {
140 Visit(stmt->statement());
141 }
142
143
139 void AstTyper::VisitIfStatement(IfStatement* stmt) { 144 void AstTyper::VisitIfStatement(IfStatement* stmt) {
140 // Collect type feedback. 145 // Collect type feedback.
141 if (!stmt->condition()->ToBooleanIsTrue() && 146 if (!stmt->condition()->ToBooleanIsTrue() &&
142 !stmt->condition()->ToBooleanIsFalse()) { 147 !stmt->condition()->ToBooleanIsFalse()) {
143 stmt->condition()->RecordToBooleanTypeFeedback(oracle()); 148 stmt->condition()->RecordToBooleanTypeFeedback(oracle());
144 } 149 }
145 150
146 RECURSE(Visit(stmt->condition())); 151 RECURSE(Visit(stmt->condition()));
147 Effects then_effects = EnterEffects(); 152 Effects then_effects = EnterEffects();
148 RECURSE(Visit(stmt->then_statement())); 153 RECURSE(Visit(stmt->then_statement()));
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 805 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
801 } 806 }
802 807
803 808
804 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 809 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
805 } 810 }
806 811
807 812
808 } // namespace internal 813 } // namespace internal
809 } // namespace v8 814 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698