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 5589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5600 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) | 5600 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) |
5601 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 5601 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
5602 ACCESSORS(Script, context_data, Object, kContextOffset) | 5602 ACCESSORS(Script, context_data, Object, kContextOffset) |
5603 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) | 5603 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) |
5604 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 5604 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
5605 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5605 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
5606 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5606 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
5607 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 5607 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
5608 kEvalFrominstructionsOffsetOffset) | 5608 kEvalFrominstructionsOffsetOffset) |
5609 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 5609 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
| 5610 BOOL_ACCESSORS(Script, flags, is_embedder_debug_script, |
| 5611 kIsEmbedderDebugScriptBit) |
5610 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) | 5612 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) |
5611 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) | 5613 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
5612 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) | 5614 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
5613 | 5615 |
5614 Script::CompilationType Script::compilation_type() { | 5616 Script::CompilationType Script::compilation_type() { |
5615 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5617 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
5616 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5618 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
5617 } | 5619 } |
5618 void Script::set_compilation_type(CompilationType type) { | 5620 void Script::set_compilation_type(CompilationType type) { |
5619 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 5621 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7550 #undef READ_SHORT_FIELD | 7552 #undef READ_SHORT_FIELD |
7551 #undef WRITE_SHORT_FIELD | 7553 #undef WRITE_SHORT_FIELD |
7552 #undef READ_BYTE_FIELD | 7554 #undef READ_BYTE_FIELD |
7553 #undef WRITE_BYTE_FIELD | 7555 #undef WRITE_BYTE_FIELD |
7554 #undef NOBARRIER_READ_BYTE_FIELD | 7556 #undef NOBARRIER_READ_BYTE_FIELD |
7555 #undef NOBARRIER_WRITE_BYTE_FIELD | 7557 #undef NOBARRIER_WRITE_BYTE_FIELD |
7556 | 7558 |
7557 } } // namespace v8::internal | 7559 } } // namespace v8::internal |
7558 | 7560 |
7559 #endif // V8_OBJECTS_INL_H_ | 7561 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |