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

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

Issue 2396353002: Revert "Add Smi::Zero and replace all Smi::FromInt(0) calls" (Closed)
Patch Set: Created 4 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698