| 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 | 745 |
| 746 // Forward declarations for inner scope classes. | 746 // Forward declarations for inner scope classes. |
| 747 class SubgraphScope; | 747 class SubgraphScope; |
| 748 | 748 |
| 749 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 749 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
| 750 | 750 |
| 751 static const int kMaxCallPolymorphism = 4; | 751 static const int kMaxCallPolymorphism = 4; |
| 752 static const int kMaxLoadPolymorphism = 4; | 752 static const int kMaxLoadPolymorphism = 4; |
| 753 static const int kMaxStorePolymorphism = 4; | 753 static const int kMaxStorePolymorphism = 4; |
| 754 | 754 |
| 755 static const int kMaxInlinedNodes = 196; | 755 |
| 756 // Make sure that kMaxInlinedSize < SharedFunctionInfo::kAstNodeCountMask. |
| 757 static const int kMaxInlinedNodesSoft = 196; |
| 758 static const int kMaxInlinedNodesHard = 270; |
| 756 static const int kMaxInlinedSize = 196; | 759 static const int kMaxInlinedSize = 196; |
| 760 static const int kMaxInlinedPrimitiveSize = 40; |
| 757 static const int kMaxSourceSize = 600; | 761 static const int kMaxSourceSize = 600; |
| 758 | 762 |
| 759 // Simple accessors. | 763 // Simple accessors. |
| 760 void set_function_state(FunctionState* state) { function_state_ = state; } | 764 void set_function_state(FunctionState* state) { function_state_ = state; } |
| 761 | 765 |
| 762 AstContext* ast_context() const { return ast_context_; } | 766 AstContext* ast_context() const { return ast_context_; } |
| 763 void set_ast_context(AstContext* context) { ast_context_ = context; } | 767 void set_ast_context(AstContext* context) { ast_context_ = context; } |
| 764 | 768 |
| 765 // Accessors forwarded to the function state. | 769 // Accessors forwarded to the function state. |
| 766 CompilationInfo* info() const { | 770 CompilationInfo* info() const { |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 const char* filename_; | 1254 const char* filename_; |
| 1251 HeapStringAllocator string_allocator_; | 1255 HeapStringAllocator string_allocator_; |
| 1252 StringStream trace_; | 1256 StringStream trace_; |
| 1253 int indent_; | 1257 int indent_; |
| 1254 }; | 1258 }; |
| 1255 | 1259 |
| 1256 | 1260 |
| 1257 } } // namespace v8::internal | 1261 } } // namespace v8::internal |
| 1258 | 1262 |
| 1259 #endif // V8_HYDROGEN_H_ | 1263 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |