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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 7190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7201 | 7201 |
7202 // Indicates that code for this function cannot be flushed. | 7202 // Indicates that code for this function cannot be flushed. |
7203 DECL_BOOLEAN_ACCESSORS(dont_flush) | 7203 DECL_BOOLEAN_ACCESSORS(dont_flush) |
7204 | 7204 |
7205 // Indicates that this function is a generator. | 7205 // Indicates that this function is a generator. |
7206 DECL_BOOLEAN_ACCESSORS(is_generator) | 7206 DECL_BOOLEAN_ACCESSORS(is_generator) |
7207 | 7207 |
7208 // Indicates that this function is an arrow function. | 7208 // Indicates that this function is an arrow function. |
7209 DECL_BOOLEAN_ACCESSORS(is_arrow) | 7209 DECL_BOOLEAN_ACCESSORS(is_arrow) |
7210 | 7210 |
| 7211 // Indicates that this function is a concise method. |
| 7212 DECL_BOOLEAN_ACCESSORS(is_concise_method) |
| 7213 |
7211 // Indicates whether or not the code in the shared function support | 7214 // Indicates whether or not the code in the shared function support |
7212 // deoptimization. | 7215 // deoptimization. |
7213 inline bool has_deoptimization_support(); | 7216 inline bool has_deoptimization_support(); |
7214 | 7217 |
7215 // Enable deoptimization support through recompiled code. | 7218 // Enable deoptimization support through recompiled code. |
7216 void EnableDeoptimizationSupport(Code* recompiled); | 7219 void EnableDeoptimizationSupport(Code* recompiled); |
7217 | 7220 |
7218 // Disable (further) attempted optimization of all functions sharing this | 7221 // Disable (further) attempted optimization of all functions sharing this |
7219 // shared function info. | 7222 // shared function info. |
7220 void DisableOptimization(BailoutReason reason); | 7223 void DisableOptimization(BailoutReason reason); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7397 kNative, | 7400 kNative, |
7398 kInlineBuiltin, | 7401 kInlineBuiltin, |
7399 kBoundFunction, | 7402 kBoundFunction, |
7400 kIsAnonymous, | 7403 kIsAnonymous, |
7401 kNameShouldPrintAsAnonymous, | 7404 kNameShouldPrintAsAnonymous, |
7402 kIsFunction, | 7405 kIsFunction, |
7403 kDontCache, | 7406 kDontCache, |
7404 kDontFlush, | 7407 kDontFlush, |
7405 kIsGenerator, | 7408 kIsGenerator, |
7406 kIsArrow, | 7409 kIsArrow, |
| 7410 kIsConciseMethod, |
7407 kCompilerHintsCount // Pseudo entry | 7411 kCompilerHintsCount // Pseudo entry |
7408 }; | 7412 }; |
7409 | 7413 |
7410 class DeoptCountBits: public BitField<int, 0, 4> {}; | 7414 class DeoptCountBits: public BitField<int, 0, 4> {}; |
7411 class OptReenableTriesBits: public BitField<int, 4, 18> {}; | 7415 class OptReenableTriesBits: public BitField<int, 4, 18> {}; |
7412 class ICAgeBits: public BitField<int, 22, 8> {}; | 7416 class ICAgeBits: public BitField<int, 22, 8> {}; |
7413 | 7417 |
7414 class OptCountBits: public BitField<int, 0, 22> {}; | 7418 class OptCountBits: public BitField<int, 0, 22> {}; |
7415 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; | 7419 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; |
7416 | 7420 |
(...skipping 3776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11193 } else { | 11197 } else { |
11194 value &= ~(1 << bit_position); | 11198 value &= ~(1 << bit_position); |
11195 } | 11199 } |
11196 return value; | 11200 return value; |
11197 } | 11201 } |
11198 }; | 11202 }; |
11199 | 11203 |
11200 } } // namespace v8::internal | 11204 } } // namespace v8::internal |
11201 | 11205 |
11202 #endif // V8_OBJECTS_H_ | 11206 #endif // V8_OBJECTS_H_ |
OLD | NEW |