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 1683103002: [compiler] Sanitize entry points to LookupSlot access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Fixes. Comments. Created 4 years, 10 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 "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 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 return Type::Any(); 1430 return Type::Any();
1431 } 1431 }
1432 1432
1433 1433
1434 Type* Typer::Visitor::TypeJSStoreContext(Node* node) { 1434 Type* Typer::Visitor::TypeJSStoreContext(Node* node) {
1435 UNREACHABLE(); 1435 UNREACHABLE();
1436 return nullptr; 1436 return nullptr;
1437 } 1437 }
1438 1438
1439 1439
1440 Type* Typer::Visitor::TypeJSLoadDynamic(Node* node) { return Type::Any(); }
1441
1442
1443 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) { 1440 Type* Typer::Visitor::WrapContextTypeForInput(Node* node) {
1444 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node)); 1441 Type* outer = TypeOrNone(NodeProperties::GetContextInput(node));
1445 if (outer->Is(Type::None())) { 1442 if (outer->Is(Type::None())) {
1446 return Type::None(); 1443 return Type::None();
1447 } else { 1444 } else {
1448 DCHECK(outer->Maybe(Type::Internal())); 1445 DCHECK(outer->Maybe(Type::Internal()));
1449 return Type::Context(outer, zone()); 1446 return Type::Context(outer, zone());
1450 } 1447 }
1451 } 1448 }
1452 1449
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 } 2423 }
2427 if (Type::IsInteger(*value)) { 2424 if (Type::IsInteger(*value)) {
2428 return Type::Range(value->Number(), value->Number(), zone()); 2425 return Type::Range(value->Number(), value->Number(), zone());
2429 } 2426 }
2430 return Type::Constant(value, zone()); 2427 return Type::Constant(value, zone());
2431 } 2428 }
2432 2429
2433 } // namespace compiler 2430 } // namespace compiler
2434 } // namespace internal 2431 } // namespace internal
2435 } // namespace v8 2432 } // 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