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

Side by Side Diff: src/typing.cc

Issue 1211453002: Reland "Keep a canonical list of shared function infos." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix alwaysopt Created 5 years, 5 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
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/x64/full-codegen-x64.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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 store_.Forget(); // Control may transfer here via 'throw'. 339 store_.Forget(); // Control may transfer here via 'throw'.
340 RECURSE(Visit(stmt->finally_block())); 340 RECURSE(Visit(stmt->finally_block()));
341 } 341 }
342 342
343 343
344 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { 344 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) {
345 store_.Forget(); // May do whatever. 345 store_.Forget(); // May do whatever.
346 } 346 }
347 347
348 348
349 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { 349 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {}
350 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code()));
351 }
352 350
353 351
354 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {} 352 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {}
355 353
356 354
357 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { 355 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
358 } 356 }
359 357
360 358
361 void AstTyper::VisitConditional(Conditional* expr) { 359 void AstTyper::VisitConditional(Conditional* expr) {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 785 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
788 } 786 }
789 787
790 788
791 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 789 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
792 } 790 }
793 791
794 792
795 } // namespace internal 793 } // namespace internal
796 } // namespace v8 794 } // namespace v8
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698