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

Unified Diff: src/objects.cc

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 side-by-side diff with in-line comments
Download patch
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 2bf21a2c6d82a9b1191b83c1f16dc5b7401d81a5..8f406602acdc04c7267e4e8396dd7054893bc664 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -15269,6 +15269,12 @@ void BytecodeArray::Disassemble(std::ostream& os) {
#endif
}
+void BytecodeArray::CopyTo(BytecodeArray* to) {
+ BytecodeArray* from = this;
+ DCHECK_EQ(from->length(), to->length());
+ CopyBytes(to->GetFirstBytecodeAddress(), from->GetFirstBytecodeAddress(),
+ from->length());
+}
// static
void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) {

Powered by Google App Engine
This is Rietveld 408576698