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 2557283002: [turbofan] Add NewUnmappedArgumentsElements and NewRestParametersArguments. (Closed)
Patch Set: Fixes. Created 4 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 | « src/compiler/type-cache.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 <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 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 } 1819 }
1820 1820
1821 Type* Typer::Visitor::TypeObjectIsString(Node* node) { 1821 Type* Typer::Visitor::TypeObjectIsString(Node* node) {
1822 return TypeUnaryOp(node, ObjectIsString); 1822 return TypeUnaryOp(node, ObjectIsString);
1823 } 1823 }
1824 1824
1825 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) { 1825 Type* Typer::Visitor::TypeObjectIsUndetectable(Node* node) {
1826 return TypeUnaryOp(node, ObjectIsUndetectable); 1826 return TypeUnaryOp(node, ObjectIsUndetectable);
1827 } 1827 }
1828 1828
1829 Type* Typer::Visitor::TypeNewUnmappedArgumentsElements(Node* node) {
1830 return Type::OtherInternal();
1831 }
1832
1833 Type* Typer::Visitor::TypeNewRestParameterElements(Node* node) {
1834 return Type::OtherInternal();
1835 }
1836
1829 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) { 1837 Type* Typer::Visitor::TypeArrayBufferWasNeutered(Node* node) {
1830 return Type::Boolean(); 1838 return Type::Boolean();
1831 } 1839 }
1832 1840
1833 // Heap constants. 1841 // Heap constants.
1834 1842
1835 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 1843 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
1836 if (Type::IsInteger(*value)) { 1844 if (Type::IsInteger(*value)) {
1837 return Type::Range(value->Number(), value->Number(), zone()); 1845 return Type::Range(value->Number(), value->Number(), zone());
1838 } 1846 }
1839 return Type::NewConstant(value, zone()); 1847 return Type::NewConstant(value, zone());
1840 } 1848 }
1841 1849
1842 } // namespace compiler 1850 } // namespace compiler
1843 } // namespace internal 1851 } // namespace internal
1844 } // namespace v8 1852 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/type-cache.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698