| 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 7301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7312 | 7312 |
| 7313 // Indicates that code for this function cannot be cached. | 7313 // Indicates that code for this function cannot be cached. |
| 7314 DECL_BOOLEAN_ACCESSORS(dont_cache) | 7314 DECL_BOOLEAN_ACCESSORS(dont_cache) |
| 7315 | 7315 |
| 7316 // Indicates that code for this function cannot be flushed. | 7316 // Indicates that code for this function cannot be flushed. |
| 7317 DECL_BOOLEAN_ACCESSORS(dont_flush) | 7317 DECL_BOOLEAN_ACCESSORS(dont_flush) |
| 7318 | 7318 |
| 7319 // Indicates that this function is a generator. | 7319 // Indicates that this function is a generator. |
| 7320 DECL_BOOLEAN_ACCESSORS(is_generator) | 7320 DECL_BOOLEAN_ACCESSORS(is_generator) |
| 7321 | 7321 |
| 7322 // Indicated that this function is an arrow function. |
| 7323 DECL_BOOLEAN_ACCESSORS(is_arrow) |
| 7324 |
| 7322 // Indicates whether or not the code in the shared function support | 7325 // Indicates whether or not the code in the shared function support |
| 7323 // deoptimization. | 7326 // deoptimization. |
| 7324 inline bool has_deoptimization_support(); | 7327 inline bool has_deoptimization_support(); |
| 7325 | 7328 |
| 7326 // Enable deoptimization support through recompiled code. | 7329 // Enable deoptimization support through recompiled code. |
| 7327 void EnableDeoptimizationSupport(Code* recompiled); | 7330 void EnableDeoptimizationSupport(Code* recompiled); |
| 7328 | 7331 |
| 7329 // Disable (further) attempted optimization of all functions sharing this | 7332 // Disable (further) attempted optimization of all functions sharing this |
| 7330 // shared function info. | 7333 // shared function info. |
| 7331 void DisableOptimization(BailoutReason reason); | 7334 void DisableOptimization(BailoutReason reason); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7529 kInlineBuiltin, | 7532 kInlineBuiltin, |
| 7530 kBoundFunction, | 7533 kBoundFunction, |
| 7531 kIsAnonymous, | 7534 kIsAnonymous, |
| 7532 kNameShouldPrintAsAnonymous, | 7535 kNameShouldPrintAsAnonymous, |
| 7533 kIsFunction, | 7536 kIsFunction, |
| 7534 kDontOptimize, | 7537 kDontOptimize, |
| 7535 kDontInline, | 7538 kDontInline, |
| 7536 kDontCache, | 7539 kDontCache, |
| 7537 kDontFlush, | 7540 kDontFlush, |
| 7538 kIsGenerator, | 7541 kIsGenerator, |
| 7542 kIsArrow, |
| 7539 kCompilerHintsCount // Pseudo entry | 7543 kCompilerHintsCount // Pseudo entry |
| 7540 }; | 7544 }; |
| 7541 | 7545 |
| 7542 class DeoptCountBits: public BitField<int, 0, 4> {}; | 7546 class DeoptCountBits: public BitField<int, 0, 4> {}; |
| 7543 class OptReenableTriesBits: public BitField<int, 4, 18> {}; | 7547 class OptReenableTriesBits: public BitField<int, 4, 18> {}; |
| 7544 class ICAgeBits: public BitField<int, 22, 8> {}; | 7548 class ICAgeBits: public BitField<int, 22, 8> {}; |
| 7545 | 7549 |
| 7546 class OptCountBits: public BitField<int, 0, 22> {}; | 7550 class OptCountBits: public BitField<int, 0, 22> {}; |
| 7547 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; | 7551 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; |
| 7548 | 7552 |
| (...skipping 3739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11288 } else { | 11292 } else { |
| 11289 value &= ~(1 << bit_position); | 11293 value &= ~(1 << bit_position); |
| 11290 } | 11294 } |
| 11291 return value; | 11295 return value; |
| 11292 } | 11296 } |
| 11293 }; | 11297 }; |
| 11294 | 11298 |
| 11295 } } // namespace v8::internal | 11299 } } // namespace v8::internal |
| 11296 | 11300 |
| 11297 #endif // V8_OBJECTS_H_ | 11301 #endif // V8_OBJECTS_H_ |
| OLD | NEW |