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