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/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 } | 739 } |
740 | 740 |
741 | 741 |
742 void FullCodeGenerator::VisitSuperCallReference(SuperCallReference* super) { | 742 void FullCodeGenerator::VisitSuperCallReference(SuperCallReference* super) { |
743 // Handled by VisitCall | 743 // Handled by VisitCall |
744 UNREACHABLE(); | 744 UNREACHABLE(); |
745 } | 745 } |
746 | 746 |
747 | 747 |
748 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { | 748 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { |
749 context()->Plug(handle(Smi::kZero, isolate())); | 749 context()->Plug(handle(Smi::FromInt(0), isolate())); |
750 } | 750 } |
751 | 751 |
752 | 752 |
753 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 753 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
754 switch (expr->op()) { | 754 switch (expr->op()) { |
755 case Token::COMMA: | 755 case Token::COMMA: |
756 return VisitComma(expr); | 756 return VisitComma(expr); |
757 case Token::OR: | 757 case Token::OR: |
758 case Token::AND: | 758 case Token::AND: |
759 return VisitLogicalExpression(expr); | 759 return VisitLogicalExpression(expr); |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 return info_->has_simple_parameters(); | 2051 return info_->has_simple_parameters(); |
2052 } | 2052 } |
2053 | 2053 |
2054 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 2054 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
2055 | 2055 |
2056 #undef __ | 2056 #undef __ |
2057 | 2057 |
2058 | 2058 |
2059 } // namespace internal | 2059 } // namespace internal |
2060 } // namespace v8 | 2060 } // namespace v8 |
OLD | NEW |