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

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

Issue 2890023004: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: 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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { 1328 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) {
1329 return Type::OtherInternal(); 1329 return Type::OtherInternal();
1330 } 1330 }
1331 1331
1332 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { 1332 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) {
1333 return Type::OtherInternal(); 1333 return Type::OtherInternal();
1334 } 1334 }
1335 1335
1336 // JS other operators. 1336 // JS other operators.
1337 1337
1338 Type* Typer::Visitor::TypeJSConstructForwardVarargs(Node* node) {
1339 return Type::Receiver();
1340 }
1341
1338 Type* Typer::Visitor::TypeJSConstruct(Node* node) { return Type::Receiver(); } 1342 Type* Typer::Visitor::TypeJSConstruct(Node* node) { return Type::Receiver(); }
1339 1343
1340 Type* Typer::Visitor::TypeJSConstructWithSpread(Node* node) { 1344 Type* Typer::Visitor::TypeJSConstructWithSpread(Node* node) {
1341 return Type::Receiver(); 1345 return Type::Receiver();
1342 } 1346 }
1343 1347
1344 Type* Typer::Visitor::JSCallTyper(Type* fun, Typer* t) { 1348 Type* Typer::Visitor::JSCallTyper(Type* fun, Typer* t) {
1345 if (fun->IsHeapConstant() && fun->AsHeapConstant()->Value()->IsJSFunction()) { 1349 if (fun->IsHeapConstant() && fun->AsHeapConstant()->Value()->IsJSFunction()) {
1346 Handle<JSFunction> function = 1350 Handle<JSFunction> function =
1347 Handle<JSFunction>::cast(fun->AsHeapConstant()->Value()); 1351 Handle<JSFunction>::cast(fun->AsHeapConstant()->Value());
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1998 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1995 if (Type::IsInteger(*value)) { 1999 if (Type::IsInteger(*value)) {
1996 return Type::Range(value->Number(), value->Number(), zone()); 2000 return Type::Range(value->Number(), value->Number(), zone());
1997 } 2001 }
1998 return Type::NewConstant(value, zone()); 2002 return Type::NewConstant(value, zone());
1999 } 2003 }
2000 2004
2001 } // namespace compiler 2005 } // namespace compiler
2002 } // namespace internal 2006 } // namespace internal
2003 } // namespace v8 2007 } // 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