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 5447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5458 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); | 5458 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); |
5459 set_flags((flags() & ~kOriginOptionsMask) | | 5459 set_flags((flags() & ~kOriginOptionsMask) | |
5460 (origin_options.Flags() << kOriginOptionsShift)); | 5460 (origin_options.Flags() << kOriginOptionsShift)); |
5461 } | 5461 } |
5462 | 5462 |
5463 | 5463 |
5464 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) | 5464 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
5465 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) | 5465 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) |
5466 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) | 5466 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |
5467 | 5467 |
| 5468 BytecodeArray* DebugInfo::original_bytecode_array() { |
| 5469 return shared()->bytecode_array(); |
| 5470 } |
| 5471 |
5468 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) | 5472 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) |
5469 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionIndex) | 5473 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionIndex) |
5470 SMI_ACCESSORS(BreakPointInfo, statement_position, kStatementPositionIndex) | 5474 SMI_ACCESSORS(BreakPointInfo, statement_position, kStatementPositionIndex) |
5471 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) | 5475 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) |
5472 | 5476 |
5473 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) | 5477 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
5474 ACCESSORS(SharedFunctionInfo, optimized_code_map, FixedArray, | 5478 ACCESSORS(SharedFunctionInfo, optimized_code_map, FixedArray, |
5475 kOptimizedCodeMapOffset) | 5479 kOptimizedCodeMapOffset) |
5476 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) | 5480 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
5477 ACCESSORS(SharedFunctionInfo, feedback_vector, TypeFeedbackVector, | 5481 ACCESSORS(SharedFunctionInfo, feedback_vector, TypeFeedbackVector, |
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7673 #undef WRITE_INT64_FIELD | 7677 #undef WRITE_INT64_FIELD |
7674 #undef READ_BYTE_FIELD | 7678 #undef READ_BYTE_FIELD |
7675 #undef WRITE_BYTE_FIELD | 7679 #undef WRITE_BYTE_FIELD |
7676 #undef NOBARRIER_READ_BYTE_FIELD | 7680 #undef NOBARRIER_READ_BYTE_FIELD |
7677 #undef NOBARRIER_WRITE_BYTE_FIELD | 7681 #undef NOBARRIER_WRITE_BYTE_FIELD |
7678 | 7682 |
7679 } // namespace internal | 7683 } // namespace internal |
7680 } // namespace v8 | 7684 } // namespace v8 |
7681 | 7685 |
7682 #endif // V8_OBJECTS_INL_H_ | 7686 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |