OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
6 | 6 |
7 #include "src/ast/ast-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } | 423 } |
424 | 424 |
425 case VariableLocation::PARAMETER: | 425 case VariableLocation::PARAMETER: |
426 case VariableLocation::LOCAL: | 426 case VariableLocation::LOCAL: |
427 case VariableLocation::LOOKUP: | 427 case VariableLocation::LOOKUP: |
428 UNREACHABLE(); | 428 UNREACHABLE(); |
429 } | 429 } |
430 } | 430 } |
431 | 431 |
432 | 432 |
433 void FullCodeGenerator::VisitExportDeclaration(ExportDeclaration* declaration) { | |
434 // TODO(rossberg) | |
435 } | |
436 | |
437 | |
438 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 433 void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
439 Comment cmnt(masm_, "[ VariableProxy"); | 434 Comment cmnt(masm_, "[ VariableProxy"); |
440 EmitVariableLoad(expr); | 435 EmitVariableLoad(expr); |
441 } | 436 } |
442 | 437 |
443 | 438 |
444 void FullCodeGenerator::VisitSloppyBlockFunctionStatement( | 439 void FullCodeGenerator::VisitSloppyBlockFunctionStatement( |
445 SloppyBlockFunctionStatement* declaration) { | 440 SloppyBlockFunctionStatement* declaration) { |
446 Visit(declaration->statement()); | 441 Visit(declaration->statement()); |
447 } | 442 } |
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 return var->scope()->is_nonlinear() || | 1981 return var->scope()->is_nonlinear() || |
1987 var->initializer_position() >= proxy->position(); | 1982 var->initializer_position() >= proxy->position(); |
1988 } | 1983 } |
1989 | 1984 |
1990 | 1985 |
1991 #undef __ | 1986 #undef __ |
1992 | 1987 |
1993 | 1988 |
1994 } // namespace internal | 1989 } // namespace internal |
1995 } // namespace v8 | 1990 } // namespace v8 |
OLD | NEW |