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

Side by Side Diff: src/compiler/typer.cc

Issue 2862213002: [turbofan] Optimized support for CreateGeneratorObject. (Closed)
Patch Set: Add control input. Created 3 years, 7 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
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 8
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 case CreateArgumentsType::kMappedArguments: 1109 case CreateArgumentsType::kMappedArguments:
1110 case CreateArgumentsType::kUnmappedArguments: 1110 case CreateArgumentsType::kUnmappedArguments:
1111 return Type::OtherObject(); 1111 return Type::OtherObject();
1112 } 1112 }
1113 UNREACHABLE(); 1113 UNREACHABLE();
1114 return nullptr; 1114 return nullptr;
1115 } 1115 }
1116 1116
1117 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { return Type::Array(); } 1117 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { return Type::Array(); }
1118 1118
1119 Type* Typer::Visitor::TypeJSCreateGeneratorObject(Node* node) {
1120 return Type::OtherObject();
1121 }
1122
1119 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { 1123 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) {
1120 return Type::Function(); 1124 return Type::Function();
1121 } 1125 }
1122 1126
1123 1127
1124 Type* Typer::Visitor::TypeJSCreateIterResultObject(Node* node) { 1128 Type* Typer::Visitor::TypeJSCreateIterResultObject(Node* node) {
1125 return Type::OtherObject(); 1129 return Type::OtherObject();
1126 } 1130 }
1127 1131
1128 Type* Typer::Visitor::TypeJSCreateKeyValueArray(Node* node) { 1132 Type* Typer::Visitor::TypeJSCreateKeyValueArray(Node* node) {
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1994 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1991 if (Type::IsInteger(*value)) { 1995 if (Type::IsInteger(*value)) {
1992 return Type::Range(value->Number(), value->Number(), zone()); 1996 return Type::Range(value->Number(), value->Number(), zone());
1993 } 1997 }
1994 return Type::NewConstant(value, zone()); 1998 return Type::NewConstant(value, zone());
1995 } 1999 }
1996 2000
1997 } // namespace compiler 2001 } // namespace compiler
1998 } // namespace internal 2002 } // namespace internal
1999 } // namespace v8 2003 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698