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 7056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7067 | 7067 |
7068 // True if the function has any duplicated parameter names. | 7068 // True if the function has any duplicated parameter names. |
7069 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) | 7069 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) |
7070 | 7070 |
7071 // Indicates whether the function is a native function. | 7071 // Indicates whether the function is a native function. |
7072 // These needs special treatment in .call and .apply since | 7072 // These needs special treatment in .call and .apply since |
7073 // null passed as the receiver should not be translated to the | 7073 // null passed as the receiver should not be translated to the |
7074 // global object. | 7074 // global object. |
7075 DECL_BOOLEAN_ACCESSORS(native) | 7075 DECL_BOOLEAN_ACCESSORS(native) |
7076 | 7076 |
7077 // Indicate that this builtin needs to be inlined in crankshaft. | 7077 // Indicate that this function should always be inlined in optimized code. |
7078 DECL_BOOLEAN_ACCESSORS(inline_builtin) | 7078 DECL_BOOLEAN_ACCESSORS(force_inline) |
7079 | 7079 |
7080 // Indicates that the function was created by the Function function. | 7080 // Indicates that the function was created by the Function function. |
7081 // Though it's anonymous, toString should treat it as if it had the name | 7081 // Though it's anonymous, toString should treat it as if it had the name |
7082 // "anonymous". We don't set the name itself so that the system does not | 7082 // "anonymous". We don't set the name itself so that the system does not |
7083 // see a binding for it. | 7083 // see a binding for it. |
7084 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) | 7084 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) |
7085 | 7085 |
7086 // Indicates whether the function is a bound function created using | 7086 // Indicates whether the function is a bound function created using |
7087 // the bind function. | 7087 // the bind function. |
7088 DECL_BOOLEAN_ACCESSORS(bound) | 7088 DECL_BOOLEAN_ACCESSORS(bound) |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7346 enum CompilerHints { | 7346 enum CompilerHints { |
7347 kAllowLazyCompilation, | 7347 kAllowLazyCompilation, |
7348 kAllowLazyCompilationWithoutContext, | 7348 kAllowLazyCompilationWithoutContext, |
7349 kOptimizationDisabled, | 7349 kOptimizationDisabled, |
7350 kStrictModeFunction, | 7350 kStrictModeFunction, |
7351 kStrongModeFunction, | 7351 kStrongModeFunction, |
7352 kUsesArguments, | 7352 kUsesArguments, |
7353 kUsesSuperProperty, | 7353 kUsesSuperProperty, |
7354 kHasDuplicateParameters, | 7354 kHasDuplicateParameters, |
7355 kNative, | 7355 kNative, |
7356 kInlineBuiltin, | 7356 kForceInline, |
7357 kBoundFunction, | 7357 kBoundFunction, |
7358 kIsAnonymous, | 7358 kIsAnonymous, |
7359 kNameShouldPrintAsAnonymous, | 7359 kNameShouldPrintAsAnonymous, |
7360 kIsFunction, | 7360 kIsFunction, |
7361 kDontCache, | 7361 kDontCache, |
7362 kDontFlush, | 7362 kDontFlush, |
7363 kIsArrow, | 7363 kIsArrow, |
7364 kIsGenerator, | 7364 kIsGenerator, |
7365 kIsConciseMethod, | 7365 kIsConciseMethod, |
7366 kIsAccessorFunction, | 7366 kIsAccessorFunction, |
(...skipping 3745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11112 } else { | 11112 } else { |
11113 value &= ~(1 << bit_position); | 11113 value &= ~(1 << bit_position); |
11114 } | 11114 } |
11115 return value; | 11115 return value; |
11116 } | 11116 } |
11117 }; | 11117 }; |
11118 | 11118 |
11119 } } // namespace v8::internal | 11119 } } // namespace v8::internal |
11120 | 11120 |
11121 #endif // V8_OBJECTS_H_ | 11121 #endif // V8_OBJECTS_H_ |
OLD | NEW |