| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 // Bailout environment manipulation. | 712 // Bailout environment manipulation. |
| 713 void Push(HValue* value) { environment()->Push(value); } | 713 void Push(HValue* value) { environment()->Push(value); } |
| 714 HValue* Pop() { return environment()->Pop(); } | 714 HValue* Pop() { return environment()->Pop(); } |
| 715 | 715 |
| 716 void Bailout(const char* reason); | 716 void Bailout(const char* reason); |
| 717 | 717 |
| 718 HBasicBlock* CreateJoin(HBasicBlock* first, | 718 HBasicBlock* CreateJoin(HBasicBlock* first, |
| 719 HBasicBlock* second, | 719 HBasicBlock* second, |
| 720 int join_id); | 720 int join_id); |
| 721 | 721 |
| 722 TypeFeedbackOracle* oracle() const { return function_state()->oracle(); } |
| 723 |
| 722 private: | 724 private: |
| 723 // Type of a member function that generates inline code for a native function. | 725 // Type of a member function that generates inline code for a native function. |
| 724 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call); | 726 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call); |
| 725 | 727 |
| 726 // Forward declarations for inner scope classes. | 728 // Forward declarations for inner scope classes. |
| 727 class SubgraphScope; | 729 class SubgraphScope; |
| 728 | 730 |
| 729 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 731 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
| 730 | 732 |
| 731 static const int kMaxCallPolymorphism = 4; | 733 static const int kMaxCallPolymorphism = 4; |
| 732 static const int kMaxLoadPolymorphism = 4; | 734 static const int kMaxLoadPolymorphism = 4; |
| 733 static const int kMaxStorePolymorphism = 4; | 735 static const int kMaxStorePolymorphism = 4; |
| 734 | 736 |
| 735 static const int kMaxInlinedNodes = 196; | 737 static const int kMaxInlinedNodes = 196; |
| 736 static const int kMaxInlinedSize = 196; | 738 static const int kMaxInlinedSize = 196; |
| 737 static const int kMaxSourceSize = 600; | 739 static const int kMaxSourceSize = 600; |
| 738 | 740 |
| 739 // Simple accessors. | 741 // Simple accessors. |
| 740 FunctionState* function_state() const { return function_state_; } | 742 FunctionState* function_state() const { return function_state_; } |
| 741 void set_function_state(FunctionState* state) { function_state_ = state; } | 743 void set_function_state(FunctionState* state) { function_state_ = state; } |
| 742 | 744 |
| 743 AstContext* ast_context() const { return ast_context_; } | 745 AstContext* ast_context() const { return ast_context_; } |
| 744 void set_ast_context(AstContext* context) { ast_context_ = context; } | 746 void set_ast_context(AstContext* context) { ast_context_ = context; } |
| 745 | 747 |
| 746 // Accessors forwarded to the function state. | 748 // Accessors forwarded to the function state. |
| 747 CompilationInfo* info() const { | 749 CompilationInfo* info() const { |
| 748 return function_state()->compilation_info(); | 750 return function_state()->compilation_info(); |
| 749 } | 751 } |
| 750 TypeFeedbackOracle* oracle() const { return function_state()->oracle(); } | |
| 751 | 752 |
| 752 AstContext* call_context() const { | 753 AstContext* call_context() const { |
| 753 return function_state()->call_context(); | 754 return function_state()->call_context(); |
| 754 } | 755 } |
| 755 HBasicBlock* function_return() const { | 756 HBasicBlock* function_return() const { |
| 756 return function_state()->function_return(); | 757 return function_state()->function_return(); |
| 757 } | 758 } |
| 758 TestContext* inlined_test_context() const { | 759 TestContext* inlined_test_context() const { |
| 759 return function_state()->test_context(); | 760 return function_state()->test_context(); |
| 760 } | 761 } |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 const char* filename_; | 1221 const char* filename_; |
| 1221 HeapStringAllocator string_allocator_; | 1222 HeapStringAllocator string_allocator_; |
| 1222 StringStream trace_; | 1223 StringStream trace_; |
| 1223 int indent_; | 1224 int indent_; |
| 1224 }; | 1225 }; |
| 1225 | 1226 |
| 1226 | 1227 |
| 1227 } } // namespace v8::internal | 1228 } } // namespace v8::internal |
| 1228 | 1229 |
| 1229 #endif // V8_HYDROGEN_H_ | 1230 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |