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

Side by Side Diff: src/typing.cc

Issue 480543002: Parse 'super' keyword. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing (minor fix for tests in release mode) Created 6 years, 4 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/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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 RECURSE(Visit(expr->right())); 716 RECURSE(Visit(expr->right()));
717 717
718 NarrowType(expr, Bounds(Type::Boolean(zone()))); 718 NarrowType(expr, Bounds(Type::Boolean(zone())));
719 } 719 }
720 720
721 721
722 void AstTyper::VisitThisFunction(ThisFunction* expr) { 722 void AstTyper::VisitThisFunction(ThisFunction* expr) {
723 } 723 }
724 724
725 725
726 void AstTyper::VisitSuperReference(SuperReference* expr) {}
727
728
726 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) { 729 void AstTyper::VisitDeclarations(ZoneList<Declaration*>* decls) {
727 for (int i = 0; i < decls->length(); ++i) { 730 for (int i = 0; i < decls->length(); ++i) {
728 Declaration* decl = decls->at(i); 731 Declaration* decl = decls->at(i);
729 RECURSE(Visit(decl)); 732 RECURSE(Visit(decl));
730 } 733 }
731 } 734 }
732 735
733 736
734 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) { 737 void AstTyper::VisitVariableDeclaration(VariableDeclaration* declaration) {
735 } 738 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 774 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
772 } 775 }
773 776
774 777
775 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 778 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
776 RECURSE(Visit(stmt->body())); 779 RECURSE(Visit(stmt->body()));
777 } 780 }
778 781
779 782
780 } } // namespace v8::internal 783 } } // 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