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 6813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6824 // spending time attempting to optimize it again. | 6824 // spending time attempting to optimize it again. |
6825 DECL_BOOLEAN_ACCESSORS(optimization_disabled) | 6825 DECL_BOOLEAN_ACCESSORS(optimization_disabled) |
6826 | 6826 |
6827 // Indicates the language mode. | 6827 // Indicates the language mode. |
6828 inline StrictMode strict_mode(); | 6828 inline StrictMode strict_mode(); |
6829 inline void set_strict_mode(StrictMode strict_mode); | 6829 inline void set_strict_mode(StrictMode strict_mode); |
6830 | 6830 |
6831 // False if the function definitely does not allocate an arguments object. | 6831 // False if the function definitely does not allocate an arguments object. |
6832 DECL_BOOLEAN_ACCESSORS(uses_arguments) | 6832 DECL_BOOLEAN_ACCESSORS(uses_arguments) |
6833 | 6833 |
6834 // Indicates that this function uses super. This is needed to set up the | 6834 // Indicates that this function uses super property. This is needed to set up |
rossberg
2014/11/27 19:04:40
Nit: ...uses a super property.
Dmitry Lomov (no reviews)
2014/11/27 19:41:57
Done.
Russian has no articles, so I keep messing t
| |
6835 // the | |
6835 // [[HomeObject]] on the function instance. | 6836 // [[HomeObject]] on the function instance. |
6836 DECL_BOOLEAN_ACCESSORS(uses_super) | 6837 DECL_BOOLEAN_ACCESSORS(uses_super_property) |
6838 | |
6839 // Indicates that this function uses super constructor. | |
rossberg
2014/11/27 19:04:40
Nit: ...uses the super constructor.
Dmitry Lomov (no reviews)
2014/11/27 19:41:57
Done.
| |
6840 DECL_BOOLEAN_ACCESSORS(uses_super_constructor_call) | |
6837 | 6841 |
6838 // True if the function has any duplicated parameter names. | 6842 // True if the function has any duplicated parameter names. |
6839 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) | 6843 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) |
6840 | 6844 |
6841 // Indicates whether the function is a native function. | 6845 // Indicates whether the function is a native function. |
6842 // These needs special treatment in .call and .apply since | 6846 // These needs special treatment in .call and .apply since |
6843 // null passed as the receiver should not be translated to the | 6847 // null passed as the receiver should not be translated to the |
6844 // global object. | 6848 // global object. |
6845 DECL_BOOLEAN_ACCESSORS(native) | 6849 DECL_BOOLEAN_ACCESSORS(native) |
6846 | 6850 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7105 static const int kStartPositionShift = 2; | 7109 static const int kStartPositionShift = 2; |
7106 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); | 7110 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); |
7107 | 7111 |
7108 // Bit positions in compiler_hints. | 7112 // Bit positions in compiler_hints. |
7109 enum CompilerHints { | 7113 enum CompilerHints { |
7110 kAllowLazyCompilation, | 7114 kAllowLazyCompilation, |
7111 kAllowLazyCompilationWithoutContext, | 7115 kAllowLazyCompilationWithoutContext, |
7112 kOptimizationDisabled, | 7116 kOptimizationDisabled, |
7113 kStrictModeFunction, | 7117 kStrictModeFunction, |
7114 kUsesArguments, | 7118 kUsesArguments, |
7115 kUsesSuper, | 7119 kUsesSuperProperty, |
7120 kUsesSuperConstructorCall, | |
7116 kHasDuplicateParameters, | 7121 kHasDuplicateParameters, |
7117 kNative, | 7122 kNative, |
7118 kInlineBuiltin, | 7123 kInlineBuiltin, |
7119 kBoundFunction, | 7124 kBoundFunction, |
7120 kIsAnonymous, | 7125 kIsAnonymous, |
7121 kNameShouldPrintAsAnonymous, | 7126 kNameShouldPrintAsAnonymous, |
7122 kIsFunction, | 7127 kIsFunction, |
7123 kDontCache, | 7128 kDontCache, |
7124 kDontFlush, | 7129 kDontFlush, |
7125 kIsArrow, | 7130 kIsArrow, |
(...skipping 3862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10988 } else { | 10993 } else { |
10989 value &= ~(1 << bit_position); | 10994 value &= ~(1 << bit_position); |
10990 } | 10995 } |
10991 return value; | 10996 return value; |
10992 } | 10997 } |
10993 }; | 10998 }; |
10994 | 10999 |
10995 } } // namespace v8::internal | 11000 } } // namespace v8::internal |
10996 | 11001 |
10997 #endif // V8_OBJECTS_H_ | 11002 #endif // V8_OBJECTS_H_ |
OLD | NEW |