| 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 "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 void operator delete(void* pointer, Zone* zone) { } | 2115 void operator delete(void* pointer, Zone* zone) { } |
| 2116 void operator delete(void* pointer) { } | 2116 void operator delete(void* pointer) { } |
| 2117 | 2117 |
| 2118 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 2118 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 2119 | 2119 |
| 2120 protected: | 2120 protected: |
| 2121 // Type of a member function that generates inline code for a native function. | 2121 // Type of a member function that generates inline code for a native function. |
| 2122 typedef void (HOptimizedGraphBuilder::*InlineFunctionGenerator) | 2122 typedef void (HOptimizedGraphBuilder::*InlineFunctionGenerator) |
| 2123 (CallRuntime* call); | 2123 (CallRuntime* call); |
| 2124 | 2124 |
| 2125 InlineFunctionGenerator FindInlineFunctionGenerator(CallRuntime* expr); |
| 2126 |
| 2125 // Forward declarations for inner scope classes. | 2127 // Forward declarations for inner scope classes. |
| 2126 class SubgraphScope; | 2128 class SubgraphScope; |
| 2127 | 2129 |
| 2128 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 2130 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
| 2129 | 2131 |
| 2130 static const int kMaxCallPolymorphism = 4; | 2132 static const int kMaxCallPolymorphism = 4; |
| 2131 static const int kMaxLoadPolymorphism = 4; | 2133 static const int kMaxLoadPolymorphism = 4; |
| 2132 static const int kMaxStorePolymorphism = 4; | 2134 static const int kMaxStorePolymorphism = 4; |
| 2133 | 2135 |
| 2134 // Even in the 'unlimited' case we have to have some limit in order not to | 2136 // Even in the 'unlimited' case we have to have some limit in order not to |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2963 } | 2965 } |
| 2964 | 2966 |
| 2965 private: | 2967 private: |
| 2966 HGraphBuilder* builder_; | 2968 HGraphBuilder* builder_; |
| 2967 }; | 2969 }; |
| 2968 | 2970 |
| 2969 | 2971 |
| 2970 } } // namespace v8::internal | 2972 } } // namespace v8::internal |
| 2971 | 2973 |
| 2972 #endif // V8_HYDROGEN_H_ | 2974 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |