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

Side by Side Diff: src/ast.h

Issue 23537067: Add support for keyed-call on arrays of fast elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Compare with actual map loaded from the context Created 7 years, 2 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 | « no previous file | src/ast.cc » ('j') | src/code-stubs.h » ('J')
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 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 ZoneList<Expression*>* arguments() const { return arguments_; } 1698 ZoneList<Expression*>* arguments() const { return arguments_; }
1699 virtual int position() const V8_FINAL { return pos_; } 1699 virtual int position() const V8_FINAL { return pos_; }
1700 1700
1701 // Type feedback information. 1701 // Type feedback information.
1702 TypeFeedbackId CallFeedbackId() const { return reuse(id()); } 1702 TypeFeedbackId CallFeedbackId() const { return reuse(id()); }
1703 void RecordTypeFeedback(TypeFeedbackOracle* oracle, CallKind call_kind); 1703 void RecordTypeFeedback(TypeFeedbackOracle* oracle, CallKind call_kind);
1704 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { 1704 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
1705 return &receiver_types_; 1705 return &receiver_types_;
1706 } 1706 }
1707 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } 1707 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
1708 bool KeyedArrayCallIsHoley() { return keyed_array_call_is_holey_; }
1708 CheckType check_type() const { return check_type_; } 1709 CheckType check_type() const { return check_type_; }
1709 1710
1710 void set_string_check(Handle<JSObject> holder) { 1711 void set_string_check(Handle<JSObject> holder) {
1711 holder_ = holder; 1712 holder_ = holder;
1712 check_type_ = STRING_CHECK; 1713 check_type_ = STRING_CHECK;
1713 } 1714 }
1714 1715
1715 void set_number_check(Handle<JSObject> holder) { 1716 void set_number_check(Handle<JSObject> holder) {
1716 holder_ = holder; 1717 holder_ = holder;
1717 check_type_ = NUMBER_CHECK; 1718 check_type_ = NUMBER_CHECK;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 protected: 1750 protected:
1750 Call(Isolate* isolate, 1751 Call(Isolate* isolate,
1751 Expression* expression, 1752 Expression* expression,
1752 ZoneList<Expression*>* arguments, 1753 ZoneList<Expression*>* arguments,
1753 int pos) 1754 int pos)
1754 : Expression(isolate), 1755 : Expression(isolate),
1755 expression_(expression), 1756 expression_(expression),
1756 arguments_(arguments), 1757 arguments_(arguments),
1757 pos_(pos), 1758 pos_(pos),
1758 is_monomorphic_(false), 1759 is_monomorphic_(false),
1760 keyed_array_call_is_holey_(true),
1759 check_type_(RECEIVER_MAP_CHECK), 1761 check_type_(RECEIVER_MAP_CHECK),
1760 return_id_(GetNextId(isolate)) { } 1762 return_id_(GetNextId(isolate)) { }
1761 1763
1762 private: 1764 private:
1763 Expression* expression_; 1765 Expression* expression_;
1764 ZoneList<Expression*>* arguments_; 1766 ZoneList<Expression*>* arguments_;
1765 int pos_; 1767 int pos_;
1766 1768
1767 bool is_monomorphic_; 1769 bool is_monomorphic_;
1770 bool keyed_array_call_is_holey_;
1768 CheckType check_type_; 1771 CheckType check_type_;
1769 SmallMapList receiver_types_; 1772 SmallMapList receiver_types_;
1770 Handle<JSFunction> target_; 1773 Handle<JSFunction> target_;
1771 Handle<JSObject> holder_; 1774 Handle<JSObject> holder_;
1772 Handle<Cell> cell_; 1775 Handle<Cell> cell_;
1773 1776
1774 const BailoutId return_id_; 1777 const BailoutId return_id_;
1775 }; 1778 };
1776 1779
1777 1780
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3254 private: 3257 private:
3255 Isolate* isolate_; 3258 Isolate* isolate_;
3256 Zone* zone_; 3259 Zone* zone_;
3257 Visitor visitor_; 3260 Visitor visitor_;
3258 }; 3261 };
3259 3262
3260 3263
3261 } } // namespace v8::internal 3264 } } // namespace v8::internal
3262 3265
3263 #endif // V8_AST_H_ 3266 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698