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

Side by Side Diff: src/typing.cc

Issue 25164003: Defer allocation of native function literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/prettyprinter.cc ('k') | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { 299 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) {
300 store_.Forget(); // May do whatever. 300 store_.Forget(); // May do whatever.
301 } 301 }
302 302
303 303
304 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { 304 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {
305 } 305 }
306 306
307 307
308 void AstTyper::VisitSharedFunctionInfoLiteral(SharedFunctionInfoLiteral* expr) { 308 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
309 } 309 }
310 310
311 311
312 void AstTyper::VisitConditional(Conditional* expr) { 312 void AstTyper::VisitConditional(Conditional* expr) {
313 // Collect type feedback. 313 // Collect type feedback.
314 expr->condition()->RecordToBooleanTypeFeedback(oracle()); 314 expr->condition()->RecordToBooleanTypeFeedback(oracle());
315 315
316 RECURSE(Visit(expr->condition())); 316 RECURSE(Visit(expr->condition()));
317 Effects then_effects = EnterEffects(); 317 Effects then_effects = EnterEffects();
318 RECURSE(Visit(expr->then_expression())); 318 RECURSE(Visit(expr->then_expression()));
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 void AstTyper::VisitModuleUrl(ModuleUrl* module) { 695 void AstTyper::VisitModuleUrl(ModuleUrl* module) {
696 } 696 }
697 697
698 698
699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { 699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) {
700 RECURSE(Visit(stmt->body())); 700 RECURSE(Visit(stmt->body()));
701 } 701 }
702 702
703 703
704 } } // namespace v8::internal 704 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/prettyprinter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698