| 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 5930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5941 | 5941 |
| 5942 // Indicates that the function cannot be optimized. | 5942 // Indicates that the function cannot be optimized. |
| 5943 DECL_BOOLEAN_ACCESSORS(dont_optimize) | 5943 DECL_BOOLEAN_ACCESSORS(dont_optimize) |
| 5944 | 5944 |
| 5945 // Indicates that the function cannot be inlined. | 5945 // Indicates that the function cannot be inlined. |
| 5946 DECL_BOOLEAN_ACCESSORS(dont_inline) | 5946 DECL_BOOLEAN_ACCESSORS(dont_inline) |
| 5947 | 5947 |
| 5948 // Indicates that code for this function cannot be cached. | 5948 // Indicates that code for this function cannot be cached. |
| 5949 DECL_BOOLEAN_ACCESSORS(dont_cache) | 5949 DECL_BOOLEAN_ACCESSORS(dont_cache) |
| 5950 | 5950 |
| 5951 // Indicates that this function is a generator. |
| 5952 DECL_BOOLEAN_ACCESSORS(is_generator) |
| 5953 |
| 5951 // Indicates whether or not the code in the shared function support | 5954 // Indicates whether or not the code in the shared function support |
| 5952 // deoptimization. | 5955 // deoptimization. |
| 5953 inline bool has_deoptimization_support(); | 5956 inline bool has_deoptimization_support(); |
| 5954 | 5957 |
| 5955 // Enable deoptimization support through recompiled code. | 5958 // Enable deoptimization support through recompiled code. |
| 5956 void EnableDeoptimizationSupport(Code* recompiled); | 5959 void EnableDeoptimizationSupport(Code* recompiled); |
| 5957 | 5960 |
| 5958 // Disable (further) attempted optimization of all functions sharing this | 5961 // Disable (further) attempted optimization of all functions sharing this |
| 5959 // shared function info. | 5962 // shared function info. |
| 5960 void DisableOptimization(const char* reason); | 5963 void DisableOptimization(const char* reason); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6167 kUsesArguments, | 6170 kUsesArguments, |
| 6168 kHasDuplicateParameters, | 6171 kHasDuplicateParameters, |
| 6169 kNative, | 6172 kNative, |
| 6170 kBoundFunction, | 6173 kBoundFunction, |
| 6171 kIsAnonymous, | 6174 kIsAnonymous, |
| 6172 kNameShouldPrintAsAnonymous, | 6175 kNameShouldPrintAsAnonymous, |
| 6173 kIsFunction, | 6176 kIsFunction, |
| 6174 kDontOptimize, | 6177 kDontOptimize, |
| 6175 kDontInline, | 6178 kDontInline, |
| 6176 kDontCache, | 6179 kDontCache, |
| 6180 kIsGenerator, |
| 6177 kCompilerHintsCount // Pseudo entry | 6181 kCompilerHintsCount // Pseudo entry |
| 6178 }; | 6182 }; |
| 6179 | 6183 |
| 6180 class DeoptCountBits: public BitField<int, 0, 4> {}; | 6184 class DeoptCountBits: public BitField<int, 0, 4> {}; |
| 6181 class OptReenableTriesBits: public BitField<int, 4, 18> {}; | 6185 class OptReenableTriesBits: public BitField<int, 4, 18> {}; |
| 6182 class ICAgeBits: public BitField<int, 22, 8> {}; | 6186 class ICAgeBits: public BitField<int, 22, 8> {}; |
| 6183 | 6187 |
| 6184 private: | 6188 private: |
| 6185 #if V8_HOST_ARCH_32_BIT | 6189 #if V8_HOST_ARCH_32_BIT |
| 6186 // On 32 bit platforms, compiler hints is a smi. | 6190 // On 32 bit platforms, compiler hints is a smi. |
| (...skipping 3110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9297 } else { | 9301 } else { |
| 9298 value &= ~(1 << bit_position); | 9302 value &= ~(1 << bit_position); |
| 9299 } | 9303 } |
| 9300 return value; | 9304 return value; |
| 9301 } | 9305 } |
| 9302 }; | 9306 }; |
| 9303 | 9307 |
| 9304 } } // namespace v8::internal | 9308 } } // namespace v8::internal |
| 9305 | 9309 |
| 9306 #endif // V8_OBJECTS_H_ | 9310 #endif // V8_OBJECTS_H_ |
| OLD | NEW |