| 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 5709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5720 } | 5720 } |
| 5721 ScriptOriginOptions Script::origin_options() { | 5721 ScriptOriginOptions Script::origin_options() { |
| 5722 return ScriptOriginOptions((flags() & kOriginOptionsMask) >> | 5722 return ScriptOriginOptions((flags() & kOriginOptionsMask) >> |
| 5723 kOriginOptionsShift); | 5723 kOriginOptionsShift); |
| 5724 } | 5724 } |
| 5725 void Script::set_origin_options(ScriptOriginOptions origin_options) { | 5725 void Script::set_origin_options(ScriptOriginOptions origin_options) { |
| 5726 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); | 5726 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); |
| 5727 set_flags((flags() & ~kOriginOptionsMask) | | 5727 set_flags((flags() & ~kOriginOptionsMask) | |
| 5728 (origin_options.Flags() << kOriginOptionsShift)); | 5728 (origin_options.Flags() << kOriginOptionsShift)); |
| 5729 } | 5729 } |
| 5730 | 5730 bool Script::is_module() { return BooleanBit::get(flags(), kIsModuleBit); } |
| 5731 void Script::set_is_module(bool value) { |
| 5732 set_flags(BooleanBit::set(flags(), kIsModuleBit, value)); |
| 5733 } |
| 5731 | 5734 |
| 5732 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) | 5735 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
| 5733 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) | 5736 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) |
| 5734 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) | 5737 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |
| 5735 | 5738 |
| 5736 BytecodeArray* DebugInfo::original_bytecode_array() { | 5739 BytecodeArray* DebugInfo::original_bytecode_array() { |
| 5737 return shared()->bytecode_array(); | 5740 return shared()->bytecode_array(); |
| 5738 } | 5741 } |
| 5739 | 5742 |
| 5740 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) | 5743 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) |
| (...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8105 #undef WRITE_INT64_FIELD | 8108 #undef WRITE_INT64_FIELD |
| 8106 #undef READ_BYTE_FIELD | 8109 #undef READ_BYTE_FIELD |
| 8107 #undef WRITE_BYTE_FIELD | 8110 #undef WRITE_BYTE_FIELD |
| 8108 #undef NOBARRIER_READ_BYTE_FIELD | 8111 #undef NOBARRIER_READ_BYTE_FIELD |
| 8109 #undef NOBARRIER_WRITE_BYTE_FIELD | 8112 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8110 | 8113 |
| 8111 } // namespace internal | 8114 } // namespace internal |
| 8112 } // namespace v8 | 8115 } // namespace v8 |
| 8113 | 8116 |
| 8114 #endif // V8_OBJECTS_INL_H_ | 8117 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |