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

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

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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/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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) { 1304 Type* Typer::Visitor::TypeJSCreateWithContext(Node* node) {
1305 return WrapContextTypeForInput(node); 1305 return WrapContextTypeForInput(node);
1306 } 1306 }
1307 1307
1308 1308
1309 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) { 1309 Type* Typer::Visitor::TypeJSCreateBlockContext(Node* node) {
1310 return WrapContextTypeForInput(node); 1310 return WrapContextTypeForInput(node);
1311 } 1311 }
1312 1312
1313 1313
1314 Type* Typer::Visitor::TypeJSCreateModuleContext(Node* node) {
1315 // TODO(rossberg): this is probably incorrect
1316 return WrapContextTypeForInput(node);
1317 }
1318
1319
1320 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) { 1314 Type* Typer::Visitor::TypeJSCreateScriptContext(Node* node) {
1321 return WrapContextTypeForInput(node); 1315 return WrapContextTypeForInput(node);
1322 } 1316 }
1323 1317
1324 1318
1325 // JS other operators. 1319 // JS other operators.
1326 1320
1327 1321
1328 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) { 1322 Type* Typer::Visitor::TypeJSCallConstruct(Node* node) {
1329 return Type::Receiver(); 1323 return Type::Receiver();
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 } 2582 }
2589 if (Type::IsInteger(*value)) { 2583 if (Type::IsInteger(*value)) {
2590 return Type::Range(value->Number(), value->Number(), zone()); 2584 return Type::Range(value->Number(), value->Number(), zone());
2591 } 2585 }
2592 return Type::Constant(value, zone()); 2586 return Type::Constant(value, zone());
2593 } 2587 }
2594 2588
2595 } // namespace compiler 2589 } // namespace compiler
2596 } // namespace internal 2590 } // namespace internal
2597 } // namespace v8 2591 } // 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