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

Issue 6793016: Record AST ids in relocation info at spots where we collect dynamic type feedback. (Closed)

Created:
9 years, 8 months ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Record AST ids in relocation info at spots where we collect dynamic type feedback. Committed: http://code.google.com/p/v8/source/detail?r=7632

Patch Set 1 #

Patch Set 2 : patch 2 #

Patch Set 3 : Rebased CL to a different branch #

Patch Set 4 : Rebased, switched branch #

Patch Set 5 : Rebase to current revision #

Patch Set 6 : Add X64 platform to change. #

Patch Set 7 : Add x64 port #

Patch Set 8 : Add ARM port #

Patch Set 9 : Add ARM port #

Total comments: 25

Patch Set 10 : Add fixes in response to comments. #

Total comments: 5

Patch Set 11 : Rewrite comment describing encoding of relocation info. #

Patch Set 12 : Fix error in release mode compilation. #

Patch Set 13 : last change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -365 lines) Patch
M src/arm/assembler-arm.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -1 line 0 comments Download
M src/arm/full-codegen-arm.cc View 1 2 3 4 5 6 7 8 9 23 chunks +118 lines, -89 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -3 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 3 4 5 6 7 8 9 2 chunks +28 lines, -4 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 7 8 9 8 chunks +28 lines, -14 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +198 lines, -84 lines 0 comments Download
M src/disassembler.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/full-codegen.h View 3 chunks +10 lines, -5 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/assembler-ia32.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 2 chunks +7 lines, -3 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 22 chunks +37 lines, -26 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/type-info.h View 1 2 3 2 chunks +18 lines, -18 lines 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 7 8 9 10 11 16 chunks +55 lines, -70 lines 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 4 5 6 7 8 9 22 chunks +38 lines, -26 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -4 lines 0 comments Download
M test/cctest/test-debug.cc View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
William Hesse
A gigantic code review for you. I have not yet ensured that ARM gets the ...
9 years, 8 months ago (2011-04-14 15:07:05 UTC) #1
Vitaly Repeshko
LGTM for the non-arm parts if we don't get duplicate ids in the type oracle. ...
9 years, 8 months ago (2011-04-15 01:24:43 UTC) #2
William Hesse
http://codereview.chromium.org/6793016/diff/18001/src/arm/assembler-arm.cc File src/arm/assembler-arm.cc (right): http://codereview.chromium.org/6793016/diff/18001/src/arm/assembler-arm.cc#newcode2729 src/arm/assembler-arm.cc:2729: RelocInfo reloc_info_with_ast_id(pc_, rmode, ast_id_for_reloc_info_); On 2011/04/15 01:24:43, Vitaly Repeshko ...
9 years, 8 months ago (2011-04-15 11:51:27 UTC) #3
fschneider
9 years, 8 months ago (2011-04-15 12:27:14 UTC) #4
LGTM.

http://codereview.chromium.org/6793016/diff/27001/src/arm/assembler-arm.h
File src/arm/assembler-arm.h (right):

http://codereview.chromium.org/6793016/diff/27001/src/arm/assembler-arm.h#new...
src/arm/assembler-arm.h:1333: 
Remove extra new line.

http://codereview.chromium.org/6793016/diff/27001/src/arm/full-codegen-arm.cc
File src/arm/full-codegen-arm.cc (right):

http://codereview.chromium.org/6793016/diff/27001/src/arm/full-codegen-arm.cc...
src/arm/full-codegen-arm.cc:3983: EmitCallIC(ic, RelocInfo::CODE_TARGET_WITH_ID,
expr->id());
I think it would work, but maybe we should for consistency use the same id that
we use for the PrepareBailout here: expr->AssignmentId()

http://codereview.chromium.org/6793016/diff/27001/src/arm/full-codegen-arm.cc...
src/arm/full-codegen-arm.cc:4000: EmitCallIC(ic, RelocInfo::CODE_TARGET_WITH_ID,
expr->id());
expr->AssignmentId() also here (and on the other platforms)

http://codereview.chromium.org/6793016/diff/27001/src/full-codegen.h
File src/full-codegen.h (right):

http://codereview.chromium.org/6793016/diff/27001/src/full-codegen.h#newcode516
src/full-codegen.h:516: void EmitCallIC(Handle<Code> ic,
I'd prefer a mandatory argument since forgetting to record an id will result in
hard-to-find performance degradations.

http://codereview.chromium.org/6793016/diff/27001/src/full-codegen.h#newcode523
src/full-codegen.h:523: void EmitCallIC(Handle<Code> ic,
Same here.

Powered by Google App Engine
This is Rietveld 408576698