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

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

Issue 1155103004: [turbofan] New operator for loads of DYNAMIC_[GLOBAL,LOCAL]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 6 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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 return Bounds(lower, upper); 1499 return Bounds(lower, upper);
1500 } 1500 }
1501 1501
1502 1502
1503 Bounds Typer::Visitor::TypeJSStoreContext(Node* node) { 1503 Bounds Typer::Visitor::TypeJSStoreContext(Node* node) {
1504 UNREACHABLE(); 1504 UNREACHABLE();
1505 return Bounds(); 1505 return Bounds();
1506 } 1506 }
1507 1507
1508 1508
1509 Bounds Typer::Visitor::TypeJSLoadDynamicGlobal(Node* node) {
1510 return Bounds::Unbounded(zone());
1511 }
1512
1513
1514 Bounds Typer::Visitor::TypeJSLoadDynamicContext(Node* node) {
1515 return Bounds::Unbounded(zone());
1516 }
1517
1518
1509 Bounds Typer::Visitor::WrapContextBoundsForInput(Node* node) { 1519 Bounds Typer::Visitor::WrapContextBoundsForInput(Node* node) {
1510 Bounds outer = BoundsOrNone(NodeProperties::GetContextInput(node)); 1520 Bounds outer = BoundsOrNone(NodeProperties::GetContextInput(node));
1511 if (outer.upper->Is(Type::None())) { 1521 if (outer.upper->Is(Type::None())) {
1512 return Bounds(Type::None()); 1522 return Bounds(Type::None());
1513 } else { 1523 } else {
1514 DCHECK(outer.upper->Maybe(Type::Internal())); 1524 DCHECK(outer.upper->Maybe(Type::Internal()));
1515 return Bounds(Type::Context(outer.upper, zone())); 1525 return Bounds(Type::Context(outer.upper, zone()));
1516 } 1526 }
1517 } 1527 }
1518 1528
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2376 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2367 #undef TYPED_ARRAY_CASE 2377 #undef TYPED_ARRAY_CASE
2368 } 2378 }
2369 } 2379 }
2370 return Type::Constant(value, zone()); 2380 return Type::Constant(value, zone());
2371 } 2381 }
2372 2382
2373 } // namespace compiler 2383 } // namespace compiler
2374 } // namespace internal 2384 } // namespace internal
2375 } // namespace v8 2385 } // 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