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

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: rebase 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
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after
5466 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); 5466 DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1)));
5467 set_flags((flags() & ~kOriginOptionsMask) | 5467 set_flags((flags() & ~kOriginOptionsMask) |
5468 (origin_options.Flags() << kOriginOptionsShift)); 5468 (origin_options.Flags() << kOriginOptionsShift));
5469 } 5469 }
5470 5470
5471 5471
5472 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) 5472 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex)
5473 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex) 5473 ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex)
5474 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) 5474 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex)
5475 5475
5476 BytecodeArray* DebugInfo::original_bytecode_array() {
5477 return shared()->bytecode_array();
5478 }
5479
5476 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex) 5480 SMI_ACCESSORS(BreakPointInfo, code_offset, kCodeOffsetIndex)
5477 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionIndex) 5481 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionIndex)
5478 SMI_ACCESSORS(BreakPointInfo, statement_position, kStatementPositionIndex) 5482 SMI_ACCESSORS(BreakPointInfo, statement_position, kStatementPositionIndex)
5479 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) 5483 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex)
5480 5484
5481 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) 5485 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset)
5482 ACCESSORS(SharedFunctionInfo, optimized_code_map, FixedArray, 5486 ACCESSORS(SharedFunctionInfo, optimized_code_map, FixedArray,
5483 kOptimizedCodeMapOffset) 5487 kOptimizedCodeMapOffset)
5484 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) 5488 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset)
5485 ACCESSORS(SharedFunctionInfo, feedback_vector, TypeFeedbackVector, 5489 ACCESSORS(SharedFunctionInfo, feedback_vector, TypeFeedbackVector,
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
7681 #undef WRITE_INT64_FIELD 7685 #undef WRITE_INT64_FIELD
7682 #undef READ_BYTE_FIELD 7686 #undef READ_BYTE_FIELD
7683 #undef WRITE_BYTE_FIELD 7687 #undef WRITE_BYTE_FIELD
7684 #undef NOBARRIER_READ_BYTE_FIELD 7688 #undef NOBARRIER_READ_BYTE_FIELD
7685 #undef NOBARRIER_WRITE_BYTE_FIELD 7689 #undef NOBARRIER_WRITE_BYTE_FIELD
7686 7690
7687 } // namespace internal 7691 } // namespace internal
7688 } // namespace v8 7692 } // namespace v8
7689 7693
7690 #endif // V8_OBJECTS_INL_H_ 7694 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698