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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b141ac902adf9ebaea886d928abd561541132ede..b51d5aaffdb71d4fb32d24f982c465349a2efbf1 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7,7 +7,6 @@
#include <iosfwd>
-#include "src/allocation.h"
#include "src/assert-scope.h"
#include "src/bailout-reason.h"
#include "src/base/bits.h"
@@ -4474,6 +4473,8 @@ class BytecodeArray : public FixedArrayBase {
void Disassemble(std::ostream& os);
+ void CopyTo(BytecodeArray* to);
Michael Starzinger 2016/02/22 09:37:49 nit: Can we call this "CopyBytecodesTo" instead? T
Yang 2016/02/22 12:48:43 Done.
+
// Layout description.
static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
@@ -10643,6 +10644,10 @@ class DebugInfo: public Struct {
// Get the number of break points for this function.
int GetBreakPointCount();
+ static Smi* uninitialized() { return Smi::FromInt(0); }
+
+ inline BytecodeArray* original_bytecode_array();
+
DECLARE_CAST(DebugInfo)
// Dispatched behavior.

Powered by Google App Engine
This is Rietveld 408576698