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 <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6805 // spending time attempting to optimize it again. | 6805 // spending time attempting to optimize it again. |
6806 DECL_BOOLEAN_ACCESSORS(optimization_disabled) | 6806 DECL_BOOLEAN_ACCESSORS(optimization_disabled) |
6807 | 6807 |
6808 // Indicates the language mode. | 6808 // Indicates the language mode. |
6809 inline LanguageMode language_mode(); | 6809 inline LanguageMode language_mode(); |
6810 inline void set_language_mode(LanguageMode language_mode); | 6810 inline void set_language_mode(LanguageMode language_mode); |
6811 | 6811 |
6812 // False if the function definitely does not allocate an arguments object. | 6812 // False if the function definitely does not allocate an arguments object. |
6813 DECL_BOOLEAN_ACCESSORS(uses_arguments) | 6813 DECL_BOOLEAN_ACCESSORS(uses_arguments) |
6814 | 6814 |
6815 // Indicates that this function uses a super property. | 6815 // Indicates that this function uses a super property (or an eval that may |
| 6816 // use a super property). |
6816 // This is needed to set up the [[HomeObject]] on the function instance. | 6817 // This is needed to set up the [[HomeObject]] on the function instance. |
6817 DECL_BOOLEAN_ACCESSORS(uses_super_property) | 6818 DECL_BOOLEAN_ACCESSORS(needs_home_object) |
6818 | 6819 |
6819 // True if the function has any duplicated parameter names. | 6820 // True if the function has any duplicated parameter names. |
6820 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) | 6821 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) |
6821 | 6822 |
6822 // Indicates whether the function is a native function. | 6823 // Indicates whether the function is a native function. |
6823 // These needs special treatment in .call and .apply since | 6824 // These needs special treatment in .call and .apply since |
6824 // null passed as the receiver should not be translated to the | 6825 // null passed as the receiver should not be translated to the |
6825 // global object. | 6826 // global object. |
6826 DECL_BOOLEAN_ACCESSORS(native) | 6827 DECL_BOOLEAN_ACCESSORS(native) |
6827 | 6828 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7097 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); | 7098 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); |
7098 | 7099 |
7099 // Bit positions in compiler_hints. | 7100 // Bit positions in compiler_hints. |
7100 enum CompilerHints { | 7101 enum CompilerHints { |
7101 kAllowLazyCompilation, | 7102 kAllowLazyCompilation, |
7102 kAllowLazyCompilationWithoutContext, | 7103 kAllowLazyCompilationWithoutContext, |
7103 kOptimizationDisabled, | 7104 kOptimizationDisabled, |
7104 kStrictModeFunction, | 7105 kStrictModeFunction, |
7105 kStrongModeFunction, | 7106 kStrongModeFunction, |
7106 kUsesArguments, | 7107 kUsesArguments, |
7107 kUsesSuperProperty, | 7108 kNeedsHomeObject, |
7108 kHasDuplicateParameters, | 7109 kHasDuplicateParameters, |
7109 kNative, | 7110 kNative, |
7110 kForceInline, | 7111 kForceInline, |
7111 kBoundFunction, | 7112 kBoundFunction, |
7112 kIsAnonymous, | 7113 kIsAnonymous, |
7113 kNameShouldPrintAsAnonymous, | 7114 kNameShouldPrintAsAnonymous, |
7114 kIsFunction, | 7115 kIsFunction, |
7115 kDontCrankshaft, | 7116 kDontCrankshaft, |
7116 kDontCache, | 7117 kDontCache, |
7117 kDontFlush, | 7118 kDontFlush, |
(...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10872 } else { | 10873 } else { |
10873 value &= ~(1 << bit_position); | 10874 value &= ~(1 << bit_position); |
10874 } | 10875 } |
10875 return value; | 10876 return value; |
10876 } | 10877 } |
10877 }; | 10878 }; |
10878 | 10879 |
10879 } } // namespace v8::internal | 10880 } } // namespace v8::internal |
10880 | 10881 |
10881 #endif // V8_OBJECTS_H_ | 10882 #endif // V8_OBJECTS_H_ |
OLD | NEW |