Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/objects-inl.h

Issue 1703453002: [interpreter, debugger] support debug breaks via bytecode array copy (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed last comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698