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

Issue 39014: Add a meaningful name when disassembling code. This makes it easier... (Closed)

Created:
11 years, 9 months ago by iposva
Modified:
9 years, 4 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Add a meaningful name when disassembling code. This makes it easier to match generated code to the originating source. Committed: http://code.google.com/p/v8/source/detail?r=1408

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -93 lines) Patch
M src/builtins.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +4 lines, -2 lines 2 comments Download
M src/codegen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/stub-cache.h View 7 chunks +19 lines, -10 lines 0 comments Download
M src/stub-cache.cc View 12 chunks +36 lines, -24 lines 4 comments Download
M src/stub-cache-arm.cc View 19 chunks +31 lines, -23 lines 0 comments Download
M src/stub-cache-ia32.cc View 19 chunks +31 lines, -23 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
iposva
11 years, 9 months ago (2009-03-03 14:59:59 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/39014/diff/1/8 File src/code-stubs.cc (right): http://codereview.chromium.org/39014/diff/1/8#newcode74 Line 74: Print(); Do you want to both Print ...
11 years, 9 months ago (2009-03-03 15:42:30 UTC) #2
iposva
11 years, 9 months ago (2009-03-03 16:21:19 UTC) #3
http://codereview.chromium.org/39014/diff/1/8
File src/code-stubs.cc (right):

http://codereview.chromium.org/39014/diff/1/8#newcode74
Line 74: Print();
On 2009/03/03 15:42:30, Kasper Lund wrote:
> Do you want to both Print and Disassemble?

Print just prints the name of the stub, but not the instructions.

http://codereview.chromium.org/39014/diff/1/5
File src/stub-cache.cc (right):

http://codereview.chromium.org/39014/diff/1/5#newcode914
Line 914: return GetCodeWithFlags(Code::ComputeMonomorphicFlags(Code::LOAD_IC,
type),
On 2009/03/03 15:42:30, Kasper Lund wrote:
> Maybe this would look better if you precomputed the flags and stored that in a
> local variable? Goes for a lot of code in here.

Done.

http://codereview.chromium.org/39014/diff/1/5#newcode941
Line 941: Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, type,
argc);
On 2009/03/03 15:42:30, Kasper Lund wrote:
> Yes. Like this.

Done.

Powered by Google App Engine
This is Rietveld 408576698