Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 762 | 762 |
| 763 // Forward declarations for inner scope classes. | 763 // Forward declarations for inner scope classes. |
| 764 class SubgraphScope; | 764 class SubgraphScope; |
| 765 | 765 |
| 766 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 766 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
| 767 | 767 |
| 768 static const int kMaxCallPolymorphism = 4; | 768 static const int kMaxCallPolymorphism = 4; |
| 769 static const int kMaxLoadPolymorphism = 4; | 769 static const int kMaxLoadPolymorphism = 4; |
| 770 static const int kMaxStorePolymorphism = 4; | 770 static const int kMaxStorePolymorphism = 4; |
| 771 | 771 |
| 772 static const int kMaxInlinedNodes = 196; | 772 static const int kSmallMaxInlinedNodes = 196; |
| 773 static const int kMaxInlinedSize = 196; | 773 static const int kSmallMaxInlinedSize = 196; |
| 774 static const int kMaxSourceSize = 600; | 774 static const int kSmallMaxSourceSize = 600; |
| 775 | |
| 776 static const int kBigMaxInlinedNodes = 1000; | |
|
Vyacheslav Egorov (Chromium)
2012/01/26 10:42:57
big vs. small is a bit confusing. it's limited/unl
| |
| 777 static const int kBigMaxInlinedSize = 1000; | |
| 778 static const int kBigMaxSourceSize = 600; | |
| 775 | 779 |
| 776 // Simple accessors. | 780 // Simple accessors. |
| 777 void set_function_state(FunctionState* state) { function_state_ = state; } | 781 void set_function_state(FunctionState* state) { function_state_ = state; } |
| 778 | 782 |
| 779 AstContext* ast_context() const { return ast_context_; } | 783 AstContext* ast_context() const { return ast_context_; } |
| 780 void set_ast_context(AstContext* context) { ast_context_ = context; } | 784 void set_ast_context(AstContext* context) { ast_context_ = context; } |
| 781 | 785 |
| 782 // Accessors forwarded to the function state. | 786 // Accessors forwarded to the function state. |
| 783 CompilationInfo* info() const { | 787 CompilationInfo* info() const { |
| 784 return function_state()->compilation_info(); | 788 return function_state()->compilation_info(); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1269 const char* filename_; | 1273 const char* filename_; |
| 1270 HeapStringAllocator string_allocator_; | 1274 HeapStringAllocator string_allocator_; |
| 1271 StringStream trace_; | 1275 StringStream trace_; |
| 1272 int indent_; | 1276 int indent_; |
| 1273 }; | 1277 }; |
| 1274 | 1278 |
| 1275 | 1279 |
| 1276 } } // namespace v8::internal | 1280 } } // namespace v8::internal |
| 1277 | 1281 |
| 1278 #endif // V8_HYDROGEN_H_ | 1282 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |