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

Issue 1332283002: Make FlushICache part of Assembler(Base) and take Isolate as parameter. (Closed)

Created:
5 years, 3 months ago by Michael Lippautz
Modified:
5 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make FlushICache part of Assembler(Base) and take Isolate as parameter. BUG=chromium:524425 LOG=N Committed: https://crrev.com/9fc4fc141fa1d1aa1a3ccb901518cdffa0d6d268 Cr-Commit-Position: refs/heads/master@{#30695}

Patch Set 1 #

Patch Set 2 : Implementation on arm,arm64,ia32,x64 #

Patch Set 3 : Add FlushICache to arm64 simulator (nop) #

Patch Set 4 : Call the new version in objects.cc #

Patch Set 5 : Add DCHECK against isolate parameter #

Patch Set 6 : Remove simulator include from cpu-arm.cc #

Patch Set 7 : Make CpuFeatures declaration available in AssemblerBase #

Patch Set 8 : Workaround to get the deprecated version working #

Patch Set 9 : Include simulator in assembler.h #

Patch Set 10 : Move implementation to .cc file to avoid include cycle with simulator (original was also in .cc) #

Patch Set 11 : Use V8_HOST_ARCH_* instead of V8_TARGET_ARCH_* where appropriate #

Patch Set 12 : Make serializer aware of new methods #

Total comments: 1

Patch Set 13 : Try to fix cpu-arm once more #

Total comments: 12

Patch Set 14 : Addressed comments + made AssemblerBase methods public ;( #

Total comments: 2

Patch Set 15 : One more fix to codegen-arm: Code::PatchPlatformCodeAge #

Patch Set 16 : Fix for static methods I thought was a member #

Patch Set 17 : Remove using declarations #

Total comments: 2

Patch Set 18 : Fix arm64 PatchingAssembler that initialized its isolate with NULL :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -80 lines) Patch
M src/arm/assembler-arm-inl.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/arm/code-stubs-arm.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +5 lines, -5 lines 0 comments Download
M src/arm/cpu-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -16 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/assembler-arm64.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/assembler-arm64-inl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/codegen-arm64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/cpu-arm64.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -11 lines 0 comments Download
M src/arm64/simulator-arm64.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -1 line 0 comments Download
M src/deoptimizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 5 chunks +5 lines, -5 lines 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/snapshot/serialize.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -4 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +7 lines, -7 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-assembler-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -6 lines 0 comments Download
M test/cctest/test-code-stubs-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-code-stubs-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283002/210001
5 years, 3 months ago (2015-09-11 11:08:44 UTC) #2
Michael Lippautz
PTAL https://codereview.chromium.org/1332283002/diff/210001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/1332283002/diff/210001/src/assembler.cc#newcode173 src/assembler.cc:173: // out issues because we usually only need ...
5 years, 3 months ago (2015-09-11 11:10:10 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/7760)
5 years, 3 months ago (2015-09-11 11:12:26 UTC) #6
Michael Starzinger
Looking good, just a couple of comment. I only reviewed one architecture, but my comments ...
5 years, 3 months ago (2015-09-11 11:40:03 UTC) #7
Michael Lippautz
Updated all callers to pass the isolate when available. https://codereview.chromium.org/1332283002/diff/230001/src/arm/code-stubs-arm.h File src/arm/code-stubs-arm.h (right): https://codereview.chromium.org/1332283002/diff/230001/src/arm/code-stubs-arm.h#newcode132 src/arm/code-stubs-arm.h:132: ...
5 years, 3 months ago (2015-09-11 11:54:52 UTC) #8
Michael Starzinger
LGTM, just one more nit. https://codereview.chromium.org/1332283002/diff/240001/src/arm/assembler-arm.h File src/arm/assembler-arm.h (right): https://codereview.chromium.org/1332283002/diff/240001/src/arm/assembler-arm.h#newcode663 src/arm/assembler-arm.h:663: using AssemblerBase::FlushICacheWithoutIsolate; Now that ...
5 years, 3 months ago (2015-09-11 11:58:40 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283002/300001
5 years, 3 months ago (2015-09-11 12:05:56 UTC) #11
Michael Lippautz
+vogelheim Please have a look at src/snapshot/serialize.cc Thanks! https://codereview.chromium.org/1332283002/diff/240001/src/arm/assembler-arm.h File src/arm/assembler-arm.h (right): https://codereview.chromium.org/1332283002/diff/240001/src/arm/assembler-arm.h#newcode663 src/arm/assembler-arm.h:663: using ...
5 years, 3 months ago (2015-09-11 12:10:24 UTC) #13
Michael Starzinger
https://codereview.chromium.org/1332283002/diff/300001/src/arm64/assembler-arm64.h File src/arm64/assembler-arm64.h (right): https://codereview.chromium.org/1332283002/diff/300001/src/arm64/assembler-arm64.h#newcode2282 src/arm64/assembler-arm64.h:2282: Assembler::FlushICache(isolate(), buffer_, length); This will crash, because the underlying ...
5 years, 3 months ago (2015-09-11 12:18:05 UTC) #14
Michael Lippautz
https://codereview.chromium.org/1332283002/diff/300001/src/arm64/assembler-arm64.h File src/arm64/assembler-arm64.h (right): https://codereview.chromium.org/1332283002/diff/300001/src/arm64/assembler-arm64.h#newcode2282 src/arm64/assembler-arm64.h:2282: Assembler::FlushICache(isolate(), buffer_, length); On 2015/09/11 12:18:05, Michael Starzinger wrote: ...
5 years, 3 months ago (2015-09-11 12:25:16 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283002/320001
5 years, 3 months ago (2015-09-11 12:29:06 UTC) #17
vogelheim
lgtm [for src/snapshot/serialize.cc]
5 years, 3 months ago (2015-09-11 12:51:19 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-11 12:53:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283002/320001
5 years, 3 months ago (2015-09-11 12:54:50 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/5713)
5 years, 3 months ago (2015-09-11 12:57:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332283002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332283002/320001
5 years, 3 months ago (2015-09-11 12:58:00 UTC) #27
commit-bot: I haz the power
Committed patchset #18 (id:320001)
5 years, 3 months ago (2015-09-11 12:59:40 UTC) #28
commit-bot: I haz the power
5 years, 3 months ago (2015-09-11 12:59:58 UTC) #29
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/9fc4fc141fa1d1aa1a3ccb901518cdffa0d6d268
Cr-Commit-Position: refs/heads/master@{#30695}

Powered by Google App Engine
This is Rietveld 408576698