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

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

Issue 2279213002: [turbofan] Introduce a dedicated ArrayBufferWasNeutered operator. (Closed)
Patch Set: Created 4 years, 3 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/simplified-operator.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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 } 1688 }
1689 1689
1690 Type* Typer::Visitor::TypeObjectIsString(Node* node) { 1690 Type* Typer::Visitor::TypeObjectIsString(Node* node) {
1691 return TypeUnaryOp(node, ObjectIsString); 1691 return TypeUnaryOp(node, ObjectIsString);
1692 } 1692 }
1693 1693
1694 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { 1694 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) {
1695 return TypeUnaryOp(node, ObjectIsUndetectable); 1695 return TypeUnaryOp(node, ObjectIsUndetectable);
1696 } 1696 }
1697 1697
1698 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) {
1699 return Type::Boolean();
1700 }
1698 1701
1699 // Machine operators. 1702 // Machine operators.
1700 1703
1701 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); } 1704 Type* Typer::Visitor::TypeDebugBreak(Node* node) { return Type::None(); }
1702 1705
1703 Type* Typer::Visitor::TypeComment(Node* node) { return Type::None(); } 1706 Type* Typer::Visitor::TypeComment(Node* node) { return Type::None(); }
1704 1707
1705 Type* Typer::Visitor::TypeRetain(Node* node) { 1708 Type* Typer::Visitor::TypeRetain(Node* node) {
1706 UNREACHABLE(); 1709 UNREACHABLE();
1707 return nullptr; 1710 return nullptr;
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 } 2324 }
2322 if (Type::IsInteger(*value)) { 2325 if (Type::IsInteger(*value)) {
2323 return Type::Range(value->Number(), value->Number(), zone()); 2326 return Type::Range(value->Number(), value->Number(), zone());
2324 } 2327 }
2325 return Type::Constant(value, zone()); 2328 return Type::Constant(value, zone());
2326 } 2329 }
2327 2330
2328 } // namespace compiler 2331 } // namespace compiler
2329 } // namespace internal 2332 } // namespace internal
2330 } // namespace v8 2333 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698