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

Side by Side Diff: src/objects.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: 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 4484 matching lines...) Expand 10 before | Expand all | Expand 10 after
4495 inline int instruction_size(); 4495 inline int instruction_size();
4496 4496
4497 int SourcePosition(int offset); 4497 int SourcePosition(int offset);
4498 int SourceStatementPosition(int offset); 4498 int SourceStatementPosition(int offset);
4499 4499
4500 DECLARE_PRINTER(BytecodeArray) 4500 DECLARE_PRINTER(BytecodeArray)
4501 DECLARE_VERIFIER(BytecodeArray) 4501 DECLARE_VERIFIER(BytecodeArray)
4502 4502
4503 void Disassemble(std::ostream& os); 4503 void Disassemble(std::ostream& os);
4504 4504
4505 void CopyTo(BytecodeArray* to);
4506
4505 // Layout description. 4507 // Layout description.
4506 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize; 4508 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
4507 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize; 4509 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
4508 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize; 4510 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize;
4509 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize; 4511 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize;
4510 static const int kSourcePositionTableOffset = 4512 static const int kSourcePositionTableOffset =
4511 kHandlerTableOffset + kPointerSize; 4513 kHandlerTableOffset + kPointerSize;
4512 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize; 4514 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize;
4513 4515
4514 // Maximal memory consumption for a single BytecodeArray. 4516 // Maximal memory consumption for a single BytecodeArray.
(...skipping 6147 matching lines...) Expand 10 before | Expand all | Expand 10 after
10662 int source_position, int statement_position, 10664 int source_position, int statement_position,
10663 Handle<Object> break_point_object); 10665 Handle<Object> break_point_object);
10664 // Get the break point objects for a code offset. 10666 // Get the break point objects for a code offset.
10665 Handle<Object> GetBreakPointObjects(int code_offset); 10667 Handle<Object> GetBreakPointObjects(int code_offset);
10666 // Find the break point info holding this break point object. 10668 // Find the break point info holding this break point object.
10667 static Handle<Object> FindBreakPointInfo(Handle<DebugInfo> debug_info, 10669 static Handle<Object> FindBreakPointInfo(Handle<DebugInfo> debug_info,
10668 Handle<Object> break_point_object); 10670 Handle<Object> break_point_object);
10669 // Get the number of break points for this function. 10671 // Get the number of break points for this function.
10670 int GetBreakPointCount(); 10672 int GetBreakPointCount();
10671 10673
10674 static Smi* uninitialized() { return Smi::FromInt(0); }
10675
10672 DECLARE_CAST(DebugInfo) 10676 DECLARE_CAST(DebugInfo)
10673 10677
10674 // Dispatched behavior. 10678 // Dispatched behavior.
10675 DECLARE_PRINTER(DebugInfo) 10679 DECLARE_PRINTER(DebugInfo)
10676 DECLARE_VERIFIER(DebugInfo) 10680 DECLARE_VERIFIER(DebugInfo)
10677 10681
10678 static const int kSharedFunctionInfoIndex = Struct::kHeaderSize; 10682 static const int kSharedFunctionInfoIndex = Struct::kHeaderSize;
10679 static const int kAbstractCodeIndex = kSharedFunctionInfoIndex + kPointerSize; 10683 static const int kAbstractCodeIndex = kSharedFunctionInfoIndex + kPointerSize;
10680 static const int kBreakPointsStateIndex = kAbstractCodeIndex + kPointerSize; 10684 static const int kBreakPointsStateIndex = kAbstractCodeIndex + kPointerSize;
10681 static const int kSize = kBreakPointsStateIndex + kPointerSize; 10685 static const int kSize = kBreakPointsStateIndex + kPointerSize;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
10856 } 10860 }
10857 return value; 10861 return value;
10858 } 10862 }
10859 }; 10863 };
10860 10864
10861 10865
10862 } // NOLINT, false-positive due to second-order macros. 10866 } // NOLINT, false-positive due to second-order macros.
10863 } // NOLINT, false-positive due to second-order macros. 10867 } // NOLINT, false-positive due to second-order macros.
10864 10868
10865 #endif // V8_OBJECTS_H_ 10869 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698