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

Unified Diff: src/objects.cc

Issue 529773002: Minor-key-ify four stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix some compilation issues Created 6 years, 3 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/ic/ic.cc ('k') | src/x64/code-stubs-x64.cc » ('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 b176522447e4a594783b92a4a43dc8469a75e34a..f4e85ccbe88554f62a8e010f3ae5133802c61d05 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10901,14 +10901,11 @@ void Code::Disassemble(const char* name, OStream& os) { // NOLINT
}
if (is_compare_ic_stub()) {
DCHECK(CodeStub::GetMajorKey(this) == CodeStub::CompareIC);
- CompareIC::State left_state, right_state, handler_state;
- Token::Value op;
- ICCompareStub::DecodeKey(stub_key(), &left_state, &right_state,
- &handler_state, &op);
- os << "compare_state = " << CompareIC::GetStateName(left_state) << "*"
- << CompareIC::GetStateName(right_state) << " -> "
- << CompareIC::GetStateName(handler_state) << "\n";
- os << "compare_operation = " << Token::Name(op) << "\n";
+ ICCompareStub stub(stub_key());
+ os << "compare_state = " << CompareIC::GetStateName(stub.left()) << "*"
+ << CompareIC::GetStateName(stub.right()) << " -> "
+ << CompareIC::GetStateName(stub.state()) << "\n";
+ os << "compare_operation = " << Token::Name(stub.op()) << "\n";
}
}
if ((name != NULL) && (name[0] != '\0')) {
« no previous file with comments | « src/ic/ic.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698