| 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 5140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5151 kOriginOptionsShift); | 5151 kOriginOptionsShift); |
| 5152 } | 5152 } |
| 5153 void Script::set_origin_options(ScriptOriginOptions origin_options) { | 5153 void Script::set_origin_options(ScriptOriginOptions origin_options) { |
| 5154 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); | 5154 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); |
| 5155 set_flags(Smi::FromInt((flags()->value() & ~kOriginOptionsMask) | | 5155 set_flags(Smi::FromInt((flags()->value() & ~kOriginOptionsMask) | |
| 5156 (origin_options.Flags() << kOriginOptionsShift))); | 5156 (origin_options.Flags() << kOriginOptionsShift))); |
| 5157 } | 5157 } |
| 5158 | 5158 |
| 5159 | 5159 |
| 5160 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) | 5160 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
| 5161 ACCESSORS(DebugInfo, original_code, Code, kOriginalCodeIndex) | 5161 ACCESSORS(DebugInfo, code, Code, kCodeIndex) |
| 5162 ACCESSORS(DebugInfo, code, Code, kPatchedCodeIndex) | |
| 5163 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) | 5162 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |
| 5164 | 5163 |
| 5165 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex) | 5164 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex) |
| 5166 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex) | 5165 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex) |
| 5167 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex) | 5166 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex) |
| 5168 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) | 5167 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) |
| 5169 | 5168 |
| 5170 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) | 5169 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
| 5171 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, | 5170 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, |
| 5172 kOptimizedCodeMapOffset) | 5171 kOptimizedCodeMapOffset) |
| (...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7297 #undef READ_SHORT_FIELD | 7296 #undef READ_SHORT_FIELD |
| 7298 #undef WRITE_SHORT_FIELD | 7297 #undef WRITE_SHORT_FIELD |
| 7299 #undef READ_BYTE_FIELD | 7298 #undef READ_BYTE_FIELD |
| 7300 #undef WRITE_BYTE_FIELD | 7299 #undef WRITE_BYTE_FIELD |
| 7301 #undef NOBARRIER_READ_BYTE_FIELD | 7300 #undef NOBARRIER_READ_BYTE_FIELD |
| 7302 #undef NOBARRIER_WRITE_BYTE_FIELD | 7301 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7303 | 7302 |
| 7304 } } // namespace v8::internal | 7303 } } // namespace v8::internal |
| 7305 | 7304 |
| 7306 #endif // V8_OBJECTS_INL_H_ | 7305 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |