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

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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 19dc7d6c4cec6e092586cd582aaa4fa6fd481655..0ce4a7317146cff8e1779b227b2c80ad8326bc44 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -15182,6 +15182,12 @@ void BytecodeArray::Disassemble(std::ostream& os) {
#endif
}
+void BytecodeArray::CopyBytecodesTo(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) {
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698