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

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

Issue 1531753002: [turbofan] Add support for CreateIterResultObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/opcodes.h ('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 "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 Type* Typer::Visitor::TypeJSCreateArray(Node* node) { 1214 Type* Typer::Visitor::TypeJSCreateArray(Node* node) {
1215 return Type::OtherObject(); 1215 return Type::OtherObject();
1216 } 1216 }
1217 1217
1218 1218
1219 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) { 1219 Type* Typer::Visitor::TypeJSCreateClosure(Node* node) {
1220 return Type::Function(); 1220 return Type::Function();
1221 } 1221 }
1222 1222
1223 1223
1224 Type* Typer::Visitor::TypeJSCreateIterResultObject(Node* node) {
1225 return Type::OtherObject();
1226 }
1227
1228
1224 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { 1229 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) {
1225 return Type::OtherObject(); 1230 return Type::OtherObject();
1226 } 1231 }
1227 1232
1228 1233
1229 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) { 1234 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) {
1230 return Type::OtherObject(); 1235 return Type::OtherObject();
1231 } 1236 }
1232 1237
1233 1238
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 case Runtime::kInlineDateField: 1561 case Runtime::kInlineDateField:
1557 case Runtime::kInlineMathFloor: 1562 case Runtime::kInlineMathFloor:
1558 case Runtime::kInlineMathSqrt: 1563 case Runtime::kInlineMathSqrt:
1559 case Runtime::kInlineMathAcos: 1564 case Runtime::kInlineMathAcos:
1560 case Runtime::kInlineMathAsin: 1565 case Runtime::kInlineMathAsin:
1561 case Runtime::kInlineMathAtan: 1566 case Runtime::kInlineMathAtan:
1562 case Runtime::kInlineMathAtan2: 1567 case Runtime::kInlineMathAtan2:
1563 return Type::Number(); 1568 return Type::Number();
1564 case Runtime::kInlineMathClz32: 1569 case Runtime::kInlineMathClz32:
1565 return Type::Range(0, 32, zone()); 1570 return Type::Range(0, 32, zone());
1571 case Runtime::kInlineCreateIterResultObject:
1566 case Runtime::kInlineRegExpConstructResult: 1572 case Runtime::kInlineRegExpConstructResult:
1567 return Type::OtherObject(); 1573 return Type::OtherObject();
1568 case Runtime::kInlineSubString: 1574 case Runtime::kInlineSubString:
1569 return Type::String(); 1575 return Type::String();
1570 case Runtime::kInlineToInteger: 1576 case Runtime::kInlineToInteger:
1571 return TypeUnaryOp(node, ToInteger); 1577 return TypeUnaryOp(node, ToInteger);
1572 case Runtime::kInlineToLength: 1578 case Runtime::kInlineToLength:
1573 return TypeUnaryOp(node, ToLength); 1579 return TypeUnaryOp(node, ToLength);
1574 case Runtime::kInlineToName: 1580 case Runtime::kInlineToName:
1575 return TypeUnaryOp(node, ToName); 1581 return TypeUnaryOp(node, ToName);
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 } 2417 }
2412 if (Type::IsInteger(*value)) { 2418 if (Type::IsInteger(*value)) {
2413 return Type::Range(value->Number(), value->Number(), zone()); 2419 return Type::Range(value->Number(), value->Number(), zone());
2414 } 2420 }
2415 return Type::Constant(value, zone()); 2421 return Type::Constant(value, zone());
2416 } 2422 }
2417 2423
2418 } // namespace compiler 2424 } // namespace compiler
2419 } // namespace internal 2425 } // namespace internal
2420 } // namespace v8 2426 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698