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

Side by Side Diff: src/typing.cc

Issue 663683006: Implement ES6 Template Literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement tagged template literals Created 6 years, 1 month 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/token.h ('k') | test/cctest/test-parsing.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/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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 386 }
387 } 387 }
388 388
389 389
390 void AstTyper::VisitLiteral(Literal* expr) { 390 void AstTyper::VisitLiteral(Literal* expr) {
391 Type* type = Type::Constant(expr->value(), zone()); 391 Type* type = Type::Constant(expr->value(), zone());
392 NarrowType(expr, Bounds(type)); 392 NarrowType(expr, Bounds(type));
393 } 393 }
394 394
395 395
396 void AstTyper::VisitTemplateLiteral(TemplateLiteral* node) {}
397
398
396 void AstTyper::VisitRegExpLiteral(RegExpLiteral* expr) { 399 void AstTyper::VisitRegExpLiteral(RegExpLiteral* expr) {
397 NarrowType(expr, Bounds(Type::RegExp(zone()))); 400 NarrowType(expr, Bounds(Type::RegExp(zone())));
398 } 401 }
399 402
400 403
401 void AstTyper::VisitObjectLiteral(ObjectLiteral* expr) { 404 void AstTyper::VisitObjectLiteral(ObjectLiteral* expr) {
402 ZoneList<ObjectLiteral::Property*>* properties = expr->properties(); 405 ZoneList<ObjectLiteral::Property*>* properties = expr->properties();
403 for (int i = 0; i < properties->length(); ++i) { 406 for (int i = 0; i < properties->length(); ++i) {
404 ObjectLiteral::Property* prop = properties->at(i); 407 ObjectLiteral::Property* prop = properties->at(i);
405 408
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 786 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
784 } 787 }
785 788
786 789
787 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 790 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
788 RECURSE(Visit(stmt->body())); 791 RECURSE(Visit(stmt->body()));
789 } 792 }
790 793
791 794
792 } } // namespace v8::internal 795 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/token.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698