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

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

Issue 1532503002: [turbofan] Fix type of JSCreateClosure to be Function. (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 | « no previous file | 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 return Type::OtherObject(); 1210 return Type::OtherObject();
1211 } 1211 }
1212 1212
1213 1213
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::OtherObject(); 1220 return Type::Function();
1221 } 1221 }
1222 1222
1223 1223
1224 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) { 1224 Type* Typer::Visitor::TypeJSCreateLiteralArray(Node* node) {
1225 return Type::OtherObject(); 1225 return Type::OtherObject();
1226 } 1226 }
1227 1227
1228 1228
1229 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) { 1229 Type* Typer::Visitor::TypeJSCreateLiteralObject(Node* node) {
1230 return Type::OtherObject(); 1230 return Type::OtherObject();
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 } 2411 }
2412 if (Type::IsInteger(*value)) { 2412 if (Type::IsInteger(*value)) {
2413 return Type::Range(value->Number(), value->Number(), zone()); 2413 return Type::Range(value->Number(), value->Number(), zone());
2414 } 2414 }
2415 return Type::Constant(value, zone()); 2415 return Type::Constant(value, zone());
2416 } 2416 }
2417 2417
2418 } // namespace compiler 2418 } // namespace compiler
2419 } // namespace internal 2419 } // namespace internal
2420 } // namespace v8 2420 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698