OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 #include "accessors.h" | 10 #include "accessors.h" |
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2071 class SubgraphScope; | 2071 class SubgraphScope; |
2072 | 2072 |
2073 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 2073 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
2074 | 2074 |
2075 static const int kMaxCallPolymorphism = 4; | 2075 static const int kMaxCallPolymorphism = 4; |
2076 static const int kMaxLoadPolymorphism = 4; | 2076 static const int kMaxLoadPolymorphism = 4; |
2077 static const int kMaxStorePolymorphism = 4; | 2077 static const int kMaxStorePolymorphism = 4; |
2078 | 2078 |
2079 // Even in the 'unlimited' case we have to have some limit in order not to | 2079 // Even in the 'unlimited' case we have to have some limit in order not to |
2080 // overflow the stack. | 2080 // overflow the stack. |
2081 static const int kUnlimitedMaxInlinedSourceSize = 100000; | |
2082 static const int kUnlimitedMaxInlinedNodes = 10000; | 2081 static const int kUnlimitedMaxInlinedNodes = 10000; |
2083 static const int kUnlimitedMaxInlinedNodesCumulative = 10000; | 2082 static const int kUnlimitedMaxInlinedNodesCumulative = 10000; |
2084 | 2083 |
2085 // Maximum depth and total number of elements and properties for literal | 2084 // Maximum depth and total number of elements and properties for literal |
2086 // graphs to be considered for fast deep-copying. | 2085 // graphs to be considered for fast deep-copying. |
2087 static const int kMaxFastLiteralDepth = 3; | 2086 static const int kMaxFastLiteralDepth = 3; |
2088 static const int kMaxFastLiteralProperties = 8; | 2087 static const int kMaxFastLiteralProperties = 8; |
2089 | 2088 |
2090 // Simple accessors. | 2089 // Simple accessors. |
2091 void set_function_state(FunctionState* state) { function_state_ = state; } | 2090 void set_function_state(FunctionState* state) { function_state_ = state; } |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2810 } | 2809 } |
2811 | 2810 |
2812 private: | 2811 private: |
2813 HGraphBuilder* builder_; | 2812 HGraphBuilder* builder_; |
2814 }; | 2813 }; |
2815 | 2814 |
2816 | 2815 |
2817 } } // namespace v8::internal | 2816 } } // namespace v8::internal |
2818 | 2817 |
2819 #endif // V8_HYDROGEN_H_ | 2818 #endif // V8_HYDROGEN_H_ |
OLD | NEW |