Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index bb0a07229ab7e5f03e43e61eae9109243ec3d78a..194a299f020fa99530cd8abb5e1d6824088ec685 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2010 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -268,10 +268,13 @@ static int DecodeIt(FILE* f, |
Code::Kind2String(kind), |
CodeStub::MajorName(major_key, false)); |
switch (major_key) { |
- case CodeStub::CallFunction: |
- out.AddFormatted("argc = %d", minor_key); |
+ case CodeStub::CallFunction: { |
+ int argc = |
+ CallFunctionStub::ExtractArgcFromMinorKey(minor_key); |
+ out.AddFormatted("argc = %d", argc); |
break; |
- default: |
+ } |
+ default: |
out.AddFormatted("minor: %d", minor_key); |
} |
} |