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

Side by Side Diff: src/hydrogen.h

Issue 25039003: Only call into the HOsrBuilder if required for OSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/hydrogen.cc » ('j') | src/hydrogen.cc » ('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 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 virtual bool BuildGraph() V8_OVERRIDE; 1774 virtual bool BuildGraph() V8_OVERRIDE;
1775 1775
1776 // Simple accessors. 1776 // Simple accessors.
1777 BreakAndContinueScope* break_scope() const { return break_scope_; } 1777 BreakAndContinueScope* break_scope() const { return break_scope_; }
1778 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; } 1778 void set_break_scope(BreakAndContinueScope* head) { break_scope_ = head; }
1779 1779
1780 bool inline_bailout() { return inline_bailout_; } 1780 bool inline_bailout() { return inline_bailout_; }
1781 1781
1782 HValue* context() { return environment()->context(); } 1782 HValue* context() { return environment()->context(); }
1783 1783
1784 HOsrBuilder* osr() { return osr_; }
Michael Starzinger 2013/09/27 13:26:22 nit: Can be made const.
mvstanton 2013/09/27 13:31:43 Done.
1785
1784 void Bailout(BailoutReason reason); 1786 void Bailout(BailoutReason reason);
1785 1787
1786 HBasicBlock* CreateJoin(HBasicBlock* first, 1788 HBasicBlock* CreateJoin(HBasicBlock* first,
1787 HBasicBlock* second, 1789 HBasicBlock* second,
1788 BailoutId join_id); 1790 BailoutId join_id);
1789 1791
1790 FunctionState* function_state() const { return function_state_; } 1792 FunctionState* function_state() const { return function_state_; }
1791 1793
1792 void VisitDeclarations(ZoneList<Declaration*>* declarations); 1794 void VisitDeclarations(ZoneList<Declaration*>* declarations);
1793 1795
1796 // Build a loop entry
1797 HBasicBlock* BuildLoopEntry();
Michael Starzinger 2013/09/27 13:26:22 nit: Let's move these two declarations near Create
mvstanton 2013/09/27 13:31:43 Done.
1798
1799 // Builds a loop entry respectful of OSR requirements
1800 HBasicBlock* BuildLoopEntry(IterationStatement* statement);
1801
1794 void* operator new(size_t size, Zone* zone) { 1802 void* operator new(size_t size, Zone* zone) {
1795 return zone->New(static_cast<int>(size)); 1803 return zone->New(static_cast<int>(size));
1796 } 1804 }
1797 void operator delete(void* pointer, Zone* zone) { } 1805 void operator delete(void* pointer, Zone* zone) { }
1798 void operator delete(void* pointer) { } 1806 void operator delete(void* pointer) { }
1799 1807
1800 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 1808 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
1801 1809
1802 private: 1810 private:
1803 // Type of a member function that generates inline code for a native function. 1811 // Type of a member function that generates inline code for a native function.
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 } 2461 }
2454 2462
2455 private: 2463 private:
2456 HGraphBuilder* builder_; 2464 HGraphBuilder* builder_;
2457 }; 2465 };
2458 2466
2459 2467
2460 } } // namespace v8::internal 2468 } } // namespace v8::internal
2461 2469
2462 #endif // V8_HYDROGEN_H_ 2470 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698