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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5495 kNeedsAccessCheckBit) | 5495 kNeedsAccessCheckBit) |
5496 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, | 5496 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, |
5497 kReadOnlyPrototypeBit) | 5497 kReadOnlyPrototypeBit) |
5498 BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype, | 5498 BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype, |
5499 kRemovePrototypeBit) | 5499 kRemovePrototypeBit) |
5500 BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, | 5500 BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, |
5501 kDoNotCacheBit) | 5501 kDoNotCacheBit) |
5502 BOOL_ACCESSORS(FunctionTemplateInfo, flag, instantiated, kInstantiatedBit) | 5502 BOOL_ACCESSORS(FunctionTemplateInfo, flag, instantiated, kInstantiatedBit) |
5503 BOOL_ACCESSORS(FunctionTemplateInfo, flag, accept_any_receiver, | 5503 BOOL_ACCESSORS(FunctionTemplateInfo, flag, accept_any_receiver, |
5504 kAcceptAnyReceiver) | 5504 kAcceptAnyReceiver) |
5505 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, | 5505 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_named_expression, |
5506 kIsExpressionBit) | 5506 kIsNamedExpressionBit) |
5507 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, | 5507 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, |
5508 kIsTopLevelBit) | 5508 kIsTopLevelBit) |
5509 | 5509 |
5510 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, allows_lazy_compilation, | 5510 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, allows_lazy_compilation, |
5511 kAllowLazyCompilation) | 5511 kAllowLazyCompilation) |
5512 BOOL_ACCESSORS(SharedFunctionInfo, | 5512 BOOL_ACCESSORS(SharedFunctionInfo, |
5513 compiler_hints, | 5513 compiler_hints, |
5514 allows_lazy_compilation_without_context, | 5514 allows_lazy_compilation_without_context, |
5515 kAllowLazyCompilationWithoutContext) | 5515 kAllowLazyCompilationWithoutContext) |
5516 BOOL_ACCESSORS(SharedFunctionInfo, | 5516 BOOL_ACCESSORS(SharedFunctionInfo, |
5517 compiler_hints, | 5517 compiler_hints, |
5518 uses_arguments, | 5518 uses_arguments, |
5519 kUsesArguments) | 5519 kUsesArguments) |
5520 BOOL_ACCESSORS(SharedFunctionInfo, | 5520 BOOL_ACCESSORS(SharedFunctionInfo, |
5521 compiler_hints, | 5521 compiler_hints, |
5522 has_duplicate_parameters, | 5522 has_duplicate_parameters, |
5523 kHasDuplicateParameters) | 5523 kHasDuplicateParameters) |
5524 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, asm_function, kIsAsmFunction) | 5524 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, asm_function, kIsAsmFunction) |
5525 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, deserialized, kDeserialized) | 5525 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, deserialized, kDeserialized) |
5526 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, never_compiled, | 5526 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, never_compiled, |
5527 kNeverCompiled) | 5527 kNeverCompiled) |
5528 | 5528 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_declaration, |
| 5529 kIsDeclaration) |
5529 | 5530 |
5530 #if V8_HOST_ARCH_32_BIT | 5531 #if V8_HOST_ARCH_32_BIT |
5531 SMI_ACCESSORS(SharedFunctionInfo, length, kLengthOffset) | 5532 SMI_ACCESSORS(SharedFunctionInfo, length, kLengthOffset) |
5532 SMI_ACCESSORS(SharedFunctionInfo, internal_formal_parameter_count, | 5533 SMI_ACCESSORS(SharedFunctionInfo, internal_formal_parameter_count, |
5533 kFormalParameterCountOffset) | 5534 kFormalParameterCountOffset) |
5534 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, | 5535 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, |
5535 kExpectedNofPropertiesOffset) | 5536 kExpectedNofPropertiesOffset) |
5536 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) | 5537 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) |
5537 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, | 5538 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, |
5538 kStartPositionAndTypeOffset) | 5539 kStartPositionAndTypeOffset) |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5658 } | 5659 } |
5659 | 5660 |
5660 | 5661 |
5661 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, | 5662 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, |
5662 kNeedsHomeObject) | 5663 kNeedsHomeObject) |
5663 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 5664 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
5664 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) | 5665 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) |
5665 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 5666 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
5666 name_should_print_as_anonymous, | 5667 name_should_print_as_anonymous, |
5667 kNameShouldPrintAsAnonymous) | 5668 kNameShouldPrintAsAnonymous) |
5668 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 5669 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, |
| 5670 kIsAnonymousExpression) |
5669 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 5671 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
5670 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_crankshaft, | 5672 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_crankshaft, |
5671 kDontCrankshaft) | 5673 kDontCrankshaft) |
5672 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 5674 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
5673 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) | 5675 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_arrow, kIsArrow) |
5674 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 5676 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
5675 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, | 5677 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, |
5676 kIsConciseMethod) | 5678 kIsConciseMethod) |
5677 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_accessor_function, | 5679 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, |
5678 kIsAccessorFunction) | 5680 kIsGetterFunction) |
| 5681 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, |
| 5682 kIsSetterFunction) |
5679 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, | 5683 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, |
5680 kIsDefaultConstructor) | 5684 kIsDefaultConstructor) |
5681 | 5685 |
5682 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) | 5686 ACCESSORS(CodeCache, default_cache, FixedArray, kDefaultCacheOffset) |
5683 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) | 5687 ACCESSORS(CodeCache, normal_type_cache, Object, kNormalTypeCacheOffset) |
5684 | 5688 |
5685 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) | 5689 ACCESSORS(PolymorphicCodeCache, cache, Object, kCacheOffset) |
5686 | 5690 |
5687 bool Script::HasValidSource() { | 5691 bool Script::HasValidSource() { |
5688 Object* src = this->source(); | 5692 Object* src = this->source(); |
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7669 #undef WRITE_INT64_FIELD | 7673 #undef WRITE_INT64_FIELD |
7670 #undef READ_BYTE_FIELD | 7674 #undef READ_BYTE_FIELD |
7671 #undef WRITE_BYTE_FIELD | 7675 #undef WRITE_BYTE_FIELD |
7672 #undef NOBARRIER_READ_BYTE_FIELD | 7676 #undef NOBARRIER_READ_BYTE_FIELD |
7673 #undef NOBARRIER_WRITE_BYTE_FIELD | 7677 #undef NOBARRIER_WRITE_BYTE_FIELD |
7674 | 7678 |
7675 } // namespace internal | 7679 } // namespace internal |
7676 } // namespace v8 | 7680 } // namespace v8 |
7677 | 7681 |
7678 #endif // V8_OBJECTS_INL_H_ | 7682 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |