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

Side by Side Diff: src/crankshaft/typing.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable CrankShaft Created 5 years, 2 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/crankshaft/typing.h" 5 #include "src/crankshaft/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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {} 343 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {}
344 344
345 345
346 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {} 346 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {}
347 347
348 348
349 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { 349 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
350 } 350 }
351 351
352 352
353 void AstTyper::VisitDoExpression(DoExpression* expr) {
354 RECURSE(VisitBlock(expr->block()));
355 RECURSE(VisitVariableProxy(expr->result()));
356 NarrowType(expr, expr->result()->bounds());
357 }
358
359
353 void AstTyper::VisitConditional(Conditional* expr) { 360 void AstTyper::VisitConditional(Conditional* expr) {
354 // Collect type feedback. 361 // Collect type feedback.
355 expr->condition()->RecordToBooleanTypeFeedback(oracle()); 362 expr->condition()->RecordToBooleanTypeFeedback(oracle());
356 363
357 RECURSE(Visit(expr->condition())); 364 RECURSE(Visit(expr->condition()));
358 Effects then_effects = EnterEffects(); 365 Effects then_effects = EnterEffects();
359 RECURSE(Visit(expr->then_expression())); 366 RECURSE(Visit(expr->then_expression()));
360 ExitEffects(); 367 ExitEffects();
361 Effects else_effects = EnterEffects(); 368 Effects else_effects = EnterEffects();
362 RECURSE(Visit(expr->else_expression())); 369 RECURSE(Visit(expr->else_expression()));
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 813 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
807 } 814 }
808 815
809 816
810 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 817 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
811 } 818 }
812 819
813 820
814 } // namespace internal 821 } // namespace internal
815 } // namespace v8 822 } // namespace v8
OLDNEW
« src/ast.h ('K') | « src/crankshaft/hydrogen.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698