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

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

Issue 1104453006: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 8 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/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 Bounds Typer::Visitor::TypeJSCreate(Node* node) { 1309 Bounds Typer::Visitor::TypeJSCreate(Node* node) {
1310 return Bounds(Type::None(), Type::Object()); 1310 return Bounds(Type::None(), Type::Object());
1311 } 1311 }
1312 1312
1313 1313
1314 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) { 1314 Bounds Typer::Visitor::TypeJSCreateClosure(Node* node) {
1315 return Bounds(Type::None(), Type::OtherObject()); 1315 return Bounds(Type::None(), Type::OtherObject());
1316 } 1316 }
1317 1317
1318 1318
1319 Bounds Typer::Visitor::TypeJSCreateLiteralArray(Node* node) {
1320 return Bounds(Type::None(), Type::OtherObject());
1321 }
1322
1323
1324 Bounds Typer::Visitor::TypeJSCreateLiteralObject(Node* node) {
1325 return Bounds(Type::None(), Type::OtherObject());
1326 }
1327
1328
1319 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) { 1329 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) {
1320 // TODO(rossberg): Use range types and sized array types to filter undefined. 1330 // TODO(rossberg): Use range types and sized array types to filter undefined.
1321 if (object->IsArray() && name->Is(Type::Integral32())) { 1331 if (object->IsArray() && name->Is(Type::Integral32())) {
1322 return Type::Union( 1332 return Type::Union(
1323 object->AsArray()->Element(), Type::Undefined(), t->zone()); 1333 object->AsArray()->Element(), Type::Undefined(), t->zone());
1324 } 1334 }
1325 return Type::Any(); 1335 return Type::Any();
1326 } 1336 }
1327 1337
1328 1338
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2351 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2361 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2352 #undef TYPED_ARRAY_CASE 2362 #undef TYPED_ARRAY_CASE
2353 } 2363 }
2354 } 2364 }
2355 return Type::Constant(value, zone()); 2365 return Type::Constant(value, zone());
2356 } 2366 }
2357 2367
2358 } // namespace compiler 2368 } // namespace compiler
2359 } // namespace internal 2369 } // namespace internal
2360 } // namespace v8 2370 } // 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