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

Side by Side Diff: src/typing.cc

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git rebase Created 6 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 | 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { 345 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) {
346 store_.Forget(); // May do whatever. 346 store_.Forget(); // May do whatever.
347 } 347 }
348 348
349 349
350 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { 350 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {
351 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code())); 351 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code()));
352 } 352 }
353 353
354 354
355 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {}
356
357
355 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { 358 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
356 } 359 }
357 360
358 361
359 void AstTyper::VisitConditional(Conditional* expr) { 362 void AstTyper::VisitConditional(Conditional* expr) {
360 // Collect type feedback. 363 // Collect type feedback.
361 expr->condition()->RecordToBooleanTypeFeedback(oracle()); 364 expr->condition()->RecordToBooleanTypeFeedback(oracle());
362 365
363 RECURSE(Visit(expr->condition())); 366 RECURSE(Visit(expr->condition()));
364 Effects then_effects = EnterEffects(); 367 Effects then_effects = EnterEffects();
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 777 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
775 } 778 }
776 779
777 780
778 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 781 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
779 RECURSE(Visit(stmt->body())); 782 RECURSE(Visit(stmt->body()));
780 } 783 }
781 784
782 785
783 } } // namespace v8::internal 786 } } // 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