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

Side by Side Diff: src/ast.h

Issue 141893002: We no longer need to recover type cells from the oracle. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 1830
1831 Expression* expression() const { return expression_; } 1831 Expression* expression() const { return expression_; }
1832 ZoneList<Expression*>* arguments() const { return arguments_; } 1832 ZoneList<Expression*>* arguments() const { return arguments_; }
1833 1833
1834 // Type feedback information. 1834 // Type feedback information.
1835 TypeFeedbackId CallNewFeedbackId() const { return reuse(id()); } 1835 TypeFeedbackId CallNewFeedbackId() const { return reuse(id()); }
1836 void RecordTypeFeedback(TypeFeedbackOracle* oracle); 1836 void RecordTypeFeedback(TypeFeedbackOracle* oracle);
1837 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } 1837 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
1838 Handle<JSFunction> target() const { return target_; } 1838 Handle<JSFunction> target() const { return target_; }
1839 ElementsKind elements_kind() const { return elements_kind_; } 1839 ElementsKind elements_kind() const { return elements_kind_; }
1840 Handle<Cell> allocation_info_cell() const { 1840 Handle<AllocationSite> allocation_site() const {
1841 return allocation_info_cell_; 1841 return allocation_site_;
1842 } 1842 }
1843 1843
1844 BailoutId ReturnId() const { return return_id_; } 1844 BailoutId ReturnId() const { return return_id_; }
1845 1845
1846 protected: 1846 protected:
1847 CallNew(Isolate* isolate, 1847 CallNew(Isolate* isolate,
1848 Expression* expression, 1848 Expression* expression,
1849 ZoneList<Expression*>* arguments, 1849 ZoneList<Expression*>* arguments,
1850 int pos) 1850 int pos)
1851 : Expression(isolate, pos), 1851 : Expression(isolate, pos),
1852 expression_(expression), 1852 expression_(expression),
1853 arguments_(arguments), 1853 arguments_(arguments),
1854 is_monomorphic_(false), 1854 is_monomorphic_(false),
1855 elements_kind_(GetInitialFastElementsKind()), 1855 elements_kind_(GetInitialFastElementsKind()),
1856 return_id_(GetNextId(isolate)) { } 1856 return_id_(GetNextId(isolate)) { }
1857 1857
1858 private: 1858 private:
1859 Expression* expression_; 1859 Expression* expression_;
1860 ZoneList<Expression*>* arguments_; 1860 ZoneList<Expression*>* arguments_;
1861 1861
1862 bool is_monomorphic_; 1862 bool is_monomorphic_;
1863 Handle<JSFunction> target_; 1863 Handle<JSFunction> target_;
1864 ElementsKind elements_kind_; 1864 ElementsKind elements_kind_;
1865 Handle<Cell> allocation_info_cell_; 1865 Handle<AllocationSite> allocation_site_;
1866 1866
1867 const BailoutId return_id_; 1867 const BailoutId return_id_;
1868 }; 1868 };
1869 1869
1870 1870
1871 // The CallRuntime class does not represent any official JavaScript 1871 // The CallRuntime class does not represent any official JavaScript
1872 // language construct. Instead it is used to call a C or JS function 1872 // language construct. Instead it is used to call a C or JS function
1873 // with a set of arguments. This is used from the builtins that are 1873 // with a set of arguments. This is used from the builtins that are
1874 // implemented in JavaScript (see "v8natives.js"). 1874 // implemented in JavaScript (see "v8natives.js").
1875 class CallRuntime V8_FINAL : public Expression { 1875 class CallRuntime V8_FINAL : public Expression {
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
3310 private: 3310 private:
3311 Isolate* isolate_; 3311 Isolate* isolate_;
3312 Zone* zone_; 3312 Zone* zone_;
3313 Visitor visitor_; 3313 Visitor visitor_;
3314 }; 3314 };
3315 3315
3316 3316
3317 } } // namespace v8::internal 3317 } } // namespace v8::internal
3318 3318
3319 #endif // V8_AST_H_ 3319 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698