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

Unified Diff: src/objects.cc

Issue 1254873002: [interpreter] A couple of minor tweaks to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 844887b2b76bef032236b77e6ec592b4f429c4e1..5e218e80bde24d323e57cd372099f9147a52d2e9 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11618,8 +11618,7 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
void BytecodeArray::Disassemble(std::ostream& os) {
- os << "Frame size " << frame_size()
- << ", number of locals = " << number_of_locals() << "\n";
+ os << "Frame size " << frame_size() << "\n";
Vector<char> buf = Vector<char>::New(50);
int bytecode_size = 0;
for (int i = 0; i < this->length(); i += bytecode_size) {
@@ -11635,7 +11634,7 @@ void BytecodeArray::Disassemble(std::ostream& os) {
for (int j = bytecode_size; j < interpreter::Bytecodes::kMaximumSize; j++) {
os << " ";
}
- os << bytecode;
+ os << bytecode << "\n";
}
}
« 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