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

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

Issue 1105513002: [turbofan] Use FastNewClosureStub if possible. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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/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/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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1304
1305 1305
1306 // JS object operators. 1306 // JS object operators.
1307 1307
1308 1308
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) {
1315 return Bounds(Type::None(), Type::OtherObject());
1316 }
1317
1318
1314 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) { 1319 Type* Typer::Visitor::JSLoadPropertyTyper(Type* object, Type* name, Typer* t) {
1315 // TODO(rossberg): Use range types and sized array types to filter undefined. 1320 // TODO(rossberg): Use range types and sized array types to filter undefined.
1316 if (object->IsArray() && name->Is(Type::Integral32())) { 1321 if (object->IsArray() && name->Is(Type::Integral32())) {
1317 return Type::Union( 1322 return Type::Union(
1318 object->AsArray()->Element(), Type::Undefined(), t->zone()); 1323 object->AsArray()->Element(), Type::Undefined(), t->zone());
1319 } 1324 }
1320 return Type::Any(); 1325 return Type::Any();
1321 } 1326 }
1322 1327
1323 1328
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2351 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2347 #undef TYPED_ARRAY_CASE 2352 #undef TYPED_ARRAY_CASE
2348 } 2353 }
2349 } 2354 }
2350 return Type::Constant(value, zone()); 2355 return Type::Constant(value, zone());
2351 } 2356 }
2352 2357
2353 } // namespace compiler 2358 } // namespace compiler
2354 } // namespace internal 2359 } // namespace internal
2355 } // namespace v8 2360 } // 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