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

Issue 2380583002: [tracing] Avoid Gcc compilation fail by declaring AddTraceEvent function in Class derived from Plat… (Closed)

Created:
4 years, 2 months ago by zhengxing.li
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[tracing] Avoid Gcc compilation fail by declaring AddTraceEvent function in Class derived from Platform Class. The CL #39789 (https://codereview.chromium.org/2367603002 ) caused the Gcc compilation fail for v8 debug mode. The error message was: In file included from .././include/libplatform/v8-tracing.h:13:0, from .././src/libplatform/default-platform.h:14, from ../src/libplatform/default-platform.cc:5: .././include/v8-platform.h:169:20: error: ‘virtual uint64_t v8::Platform::AddTraceEvent(char, const uint8_t*, const char*, const char*, uint64_t, uint64_t, int32_t, const char**, const uint8_t*, const uint64_t*, unsigned int)’ was hidden [-Werror=overloaded-virtual] virtual uint64_t AddTraceEvent( ^ In file included from ../src/libplatform/default-platform.cc:5:0: .././src/libplatform/default-platform.h:55:12: error: by ‘virtual uint64_t v8::platform::DefaultPlatform::AddTraceEvent(char, const uint8_t*, const char*, const char*, uint64_t, uint64_t, int32_t, const char**, const uint8_t*, const uint64_t*, std::unique_ptr<v8::ConvertableToTraceFormat>*, unsigned int)’ [-Werror=overloaded-virtual] uint64_t AddTraceEvent( ^ This CL fixed this issue by adding "using Platform::AddTraceEvent;" before all declarations of AddTraceEvent functions in Classes derived from Platform Class. BUG= Committed: https://crrev.com/990a8e391339ab3a9238eff4f9ad904f99c9b930 Cr-Commit-Position: refs/heads/master@{#39810}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M src/d8.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/libplatform/default-platform.h View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/heap/test-incremental-marking.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-trace-event.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
zhengxing.li
PTAL, thanks!
4 years, 2 months ago (2016-09-28 06:31:49 UTC) #2
Benedikt Meurer
LGTM.
4 years, 2 months ago (2016-09-28 08:17:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2380583002/1
4 years, 2 months ago (2016-09-28 08:18:20 UTC) #5
alph
Thanks for the fix! FYI: I'm going to remove the legacy AddTraceEvent as soon as ...
4 years, 2 months ago (2016-09-28 08:45:57 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-28 08:47:22 UTC) #7
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 08:47:41 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/990a8e391339ab3a9238eff4f9ad904f99c9b930
Cr-Commit-Position: refs/heads/master@{#39810}

Powered by Google App Engine
This is Rietveld 408576698