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

Side by Side Diff: src/hydrogen-instructions.h

Issue 201153020: Merged r19834, r19843 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 9 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/heap.cc ('k') | src/hydrogen-instructions.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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 public: 1792 public:
1793 HSimulate(BailoutId ast_id, 1793 HSimulate(BailoutId ast_id,
1794 int pop_count, 1794 int pop_count,
1795 Zone* zone, 1795 Zone* zone,
1796 RemovableSimulate removable) 1796 RemovableSimulate removable)
1797 : ast_id_(ast_id), 1797 : ast_id_(ast_id),
1798 pop_count_(pop_count), 1798 pop_count_(pop_count),
1799 values_(2, zone), 1799 values_(2, zone),
1800 assigned_indexes_(2, zone), 1800 assigned_indexes_(2, zone),
1801 zone_(zone), 1801 zone_(zone),
1802 removable_(removable) {} 1802 removable_(removable),
1803 done_with_replay_(false) {}
1803 ~HSimulate() {} 1804 ~HSimulate() {}
1804 1805
1805 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1806 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1806 1807
1807 bool HasAstId() const { return !ast_id_.IsNone(); } 1808 bool HasAstId() const { return !ast_id_.IsNone(); }
1808 BailoutId ast_id() const { return ast_id_; } 1809 BailoutId ast_id() const { return ast_id_; }
1809 void set_ast_id(BailoutId id) { 1810 void set_ast_id(BailoutId id) {
1810 ASSERT(!HasAstId()); 1811 ASSERT(!HasAstId());
1811 ast_id_ = id; 1812 ast_id_ = id;
1812 } 1813 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 for (int i = 0; i < assigned_indexes_.length(); ++i) { 1876 for (int i = 0; i < assigned_indexes_.length(); ++i) {
1876 if (assigned_indexes_[i] == index) return true; 1877 if (assigned_indexes_[i] == index) return true;
1877 } 1878 }
1878 return false; 1879 return false;
1879 } 1880 }
1880 BailoutId ast_id_; 1881 BailoutId ast_id_;
1881 int pop_count_; 1882 int pop_count_;
1882 ZoneList<HValue*> values_; 1883 ZoneList<HValue*> values_;
1883 ZoneList<int> assigned_indexes_; 1884 ZoneList<int> assigned_indexes_;
1884 Zone* zone_; 1885 Zone* zone_;
1885 RemovableSimulate removable_; 1886 RemovableSimulate removable_ : 2;
1887 bool done_with_replay_ : 1;
1886 1888
1887 #ifdef DEBUG 1889 #ifdef DEBUG
1888 Handle<JSFunction> closure_; 1890 Handle<JSFunction> closure_;
1889 #endif 1891 #endif
1890 }; 1892 };
1891 1893
1892 1894
1893 class HEnvironmentMarker V8_FINAL : public HTemplateInstruction<1> { 1895 class HEnvironmentMarker V8_FINAL : public HTemplateInstruction<1> {
1894 public: 1896 public:
1895 enum Kind { BIND, LOOKUP }; 1897 enum Kind { BIND, LOOKUP };
(...skipping 5529 matching lines...) Expand 10 before | Expand all | Expand 10 after
7425 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7427 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7426 }; 7428 };
7427 7429
7428 7430
7429 #undef DECLARE_INSTRUCTION 7431 #undef DECLARE_INSTRUCTION
7430 #undef DECLARE_CONCRETE_INSTRUCTION 7432 #undef DECLARE_CONCRETE_INSTRUCTION
7431 7433
7432 } } // namespace v8::internal 7434 } } // namespace v8::internal
7433 7435
7434 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7436 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698