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 5295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5306 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) | 5306 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) |
5307 | 5307 |
5308 // Indicates whether the function is a bound function created using | 5308 // Indicates whether the function is a bound function created using |
5309 // the bind function. | 5309 // the bind function. |
5310 DECL_BOOLEAN_ACCESSORS(bound) | 5310 DECL_BOOLEAN_ACCESSORS(bound) |
5311 | 5311 |
5312 // Indicates that the function is anonymous (the name field can be set | 5312 // Indicates that the function is anonymous (the name field can be set |
5313 // through the API, which does not change this flag). | 5313 // through the API, which does not change this flag). |
5314 DECL_BOOLEAN_ACCESSORS(is_anonymous) | 5314 DECL_BOOLEAN_ACCESSORS(is_anonymous) |
5315 | 5315 |
5316 // Indicates that the function cannot be crankshafted. | 5316 // Is this a function or top-level/eval code. |
5317 DECL_BOOLEAN_ACCESSORS(dont_crankshaft) | 5317 DECL_BOOLEAN_ACCESSORS(is_function) |
| 5318 |
| 5319 // Indicates that the function cannot be optimized. |
| 5320 DECL_BOOLEAN_ACCESSORS(dont_optimize) |
5318 | 5321 |
5319 // Indicates that the function cannot be inlined. | 5322 // Indicates that the function cannot be inlined. |
5320 DECL_BOOLEAN_ACCESSORS(dont_inline) | 5323 DECL_BOOLEAN_ACCESSORS(dont_inline) |
5321 | 5324 |
5322 // Indicates whether or not the code in the shared function support | 5325 // Indicates whether or not the code in the shared function support |
5323 // deoptimization. | 5326 // deoptimization. |
5324 inline bool has_deoptimization_support(); | 5327 inline bool has_deoptimization_support(); |
5325 | 5328 |
5326 // Enable deoptimization support through recompiled code. | 5329 // Enable deoptimization support through recompiled code. |
5327 void EnableDeoptimizationSupport(Code* recompiled); | 5330 void EnableDeoptimizationSupport(Code* recompiled); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5520 kCodeAgeShift, | 5523 kCodeAgeShift, |
5521 kOptimizationDisabled = kCodeAgeShift + kCodeAgeSize, | 5524 kOptimizationDisabled = kCodeAgeShift + kCodeAgeSize, |
5522 kStrictModeFunction, | 5525 kStrictModeFunction, |
5523 kExtendedModeFunction, | 5526 kExtendedModeFunction, |
5524 kUsesArguments, | 5527 kUsesArguments, |
5525 kHasDuplicateParameters, | 5528 kHasDuplicateParameters, |
5526 kNative, | 5529 kNative, |
5527 kBoundFunction, | 5530 kBoundFunction, |
5528 kIsAnonymous, | 5531 kIsAnonymous, |
5529 kNameShouldPrintAsAnonymous, | 5532 kNameShouldPrintAsAnonymous, |
5530 kDontCrankshaft, | 5533 kIsFunction, |
| 5534 kDontOptimize, |
5531 kDontInline, | 5535 kDontInline, |
5532 kCompilerHintsCount // Pseudo entry | 5536 kCompilerHintsCount // Pseudo entry |
5533 }; | 5537 }; |
5534 | 5538 |
5535 private: | 5539 private: |
5536 #if V8_HOST_ARCH_32_BIT | 5540 #if V8_HOST_ARCH_32_BIT |
5537 // On 32 bit platforms, compiler hints is a smi. | 5541 // On 32 bit platforms, compiler hints is a smi. |
5538 static const int kCompilerHintsSmiTagSize = kSmiTagSize; | 5542 static const int kCompilerHintsSmiTagSize = kSmiTagSize; |
5539 static const int kCompilerHintsSize = kPointerSize; | 5543 static const int kCompilerHintsSize = kPointerSize; |
5540 #else | 5544 #else |
(...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8296 } else { | 8300 } else { |
8297 value &= ~(1 << bit_position); | 8301 value &= ~(1 << bit_position); |
8298 } | 8302 } |
8299 return value; | 8303 return value; |
8300 } | 8304 } |
8301 }; | 8305 }; |
8302 | 8306 |
8303 } } // namespace v8::internal | 8307 } } // namespace v8::internal |
8304 | 8308 |
8305 #endif // V8_OBJECTS_H_ | 8309 #endif // V8_OBJECTS_H_ |
OLD | NEW |