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

Side by Side Diff: src/full-codegen.cc

Issue 9496003: AST extensions and parsing for import & export declarations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 void BreakableStatementChecker::VisitFunctionDeclaration( 58 void BreakableStatementChecker::VisitFunctionDeclaration(
59 FunctionDeclaration* decl) { 59 FunctionDeclaration* decl) {
60 } 60 }
61 61
62 void BreakableStatementChecker::VisitModuleDeclaration( 62 void BreakableStatementChecker::VisitModuleDeclaration(
63 ModuleDeclaration* decl) { 63 ModuleDeclaration* decl) {
64 } 64 }
65 65
66 void BreakableStatementChecker::VisitImportDeclaration(
67 ImportDeclaration* decl) {
68 }
69
70 void BreakableStatementChecker::VisitExportDeclaration(
71 ExportDeclaration* decl) {
72 }
73
66 74
67 void BreakableStatementChecker::VisitModuleLiteral(ModuleLiteral* module) { 75 void BreakableStatementChecker::VisitModuleLiteral(ModuleLiteral* module) {
68 } 76 }
69 77
70 void BreakableStatementChecker::VisitModuleVariable(ModuleVariable* module) { 78 void BreakableStatementChecker::VisitModuleVariable(ModuleVariable* module) {
71 } 79 }
72 80
73 void BreakableStatementChecker::VisitModulePath(ModulePath* module) { 81 void BreakableStatementChecker::VisitModulePath(ModulePath* module) {
74 } 82 }
75 83
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 void FullCodeGenerator::VisitFunctionDeclaration(FunctionDeclaration* decl) { 623 void FullCodeGenerator::VisitFunctionDeclaration(FunctionDeclaration* decl) {
616 EmitDeclaration(decl->proxy(), decl->mode(), decl->fun()); 624 EmitDeclaration(decl->proxy(), decl->mode(), decl->fun());
617 } 625 }
618 626
619 627
620 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* decl) { 628 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* decl) {
621 EmitDeclaration(decl->proxy(), decl->mode(), NULL); 629 EmitDeclaration(decl->proxy(), decl->mode(), NULL);
622 } 630 }
623 631
624 632
633 void FullCodeGenerator::VisitImportDeclaration(ImportDeclaration* decl) {
634 EmitDeclaration(decl->proxy(), decl->mode(), NULL);
635 }
636
637
638 void FullCodeGenerator::VisitExportDeclaration(ExportDeclaration* decl) {
639 // TODO(rossberg)
640 }
641
642
625 void FullCodeGenerator::VisitModuleLiteral(ModuleLiteral* module) { 643 void FullCodeGenerator::VisitModuleLiteral(ModuleLiteral* module) {
626 // TODO(rossberg) 644 // TODO(rossberg)
627 } 645 }
628 646
629 647
630 void FullCodeGenerator::VisitModuleVariable(ModuleVariable* module) { 648 void FullCodeGenerator::VisitModuleVariable(ModuleVariable* module) {
631 // TODO(rossberg) 649 // TODO(rossberg)
632 } 650 }
633 651
634 652
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 } 1418 }
1401 1419
1402 return false; 1420 return false;
1403 } 1421 }
1404 1422
1405 1423
1406 #undef __ 1424 #undef __
1407 1425
1408 1426
1409 } } // namespace v8::internal 1427 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/hydrogen.cc » ('j') | test/mjsunit/harmony/module-parsing.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698