| 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 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5596 } | 5596 } |
| 5597 ScriptOriginOptions Script::origin_options() { | 5597 ScriptOriginOptions Script::origin_options() { |
| 5598 return ScriptOriginOptions((flags() & kOriginOptionsMask) >> | 5598 return ScriptOriginOptions((flags() & kOriginOptionsMask) >> |
| 5599 kOriginOptionsShift); | 5599 kOriginOptionsShift); |
| 5600 } | 5600 } |
| 5601 void Script::set_origin_options(ScriptOriginOptions origin_options) { | 5601 void Script::set_origin_options(ScriptOriginOptions origin_options) { |
| 5602 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); | 5602 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); |
| 5603 set_flags((flags() & ~kOriginOptionsMask) | | 5603 set_flags((flags() & ~kOriginOptionsMask) | |
| 5604 (origin_options.Flags() << kOriginOptionsShift)); | 5604 (origin_options.Flags() << kOriginOptionsShift)); |
| 5605 } | 5605 } |
| 5606 | 5606 bool Script::is_module() { return BooleanBit::get(flags(), kIsModuleBit); } |
| 5607 void Script::set_is_module(bool value) { |
| 5608 set_flags(BooleanBit::set(flags(), kIsModuleBit, value)); |
| 5609 } |
| 5607 | 5610 |
| 5608 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) | 5611 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
| 5609 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) | 5612 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) |
| 5610 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) | 5613 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |
| 5611 | 5614 |
| 5612 BytecodeArray* DebugInfo::original_bytecode_array() { | 5615 BytecodeArray* DebugInfo::original_bytecode_array() { |
| 5613 return shared()->bytecode_array(); | 5616 return shared()->bytecode_array(); |
| 5614 } | 5617 } |
| 5615 | 5618 |
| 5616 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) | 5619 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) |
| (...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7909 #undef WRITE_INT64_FIELD | 7912 #undef WRITE_INT64_FIELD |
| 7910 #undef READ_BYTE_FIELD | 7913 #undef READ_BYTE_FIELD |
| 7911 #undef WRITE_BYTE_FIELD | 7914 #undef WRITE_BYTE_FIELD |
| 7912 #undef NOBARRIER_READ_BYTE_FIELD | 7915 #undef NOBARRIER_READ_BYTE_FIELD |
| 7913 #undef NOBARRIER_WRITE_BYTE_FIELD | 7916 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7914 | 7917 |
| 7915 } // namespace internal | 7918 } // namespace internal |
| 7916 } // namespace v8 | 7919 } // namespace v8 |
| 7917 | 7920 |
| 7918 #endif // V8_OBJECTS_INL_H_ | 7921 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |