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

Issue 22093003: Move V8EXPORT definition to its own file (Closed)

Created:
7 years, 4 months ago by yurys
Modified:
7 years, 4 months ago
Reviewers:
Sven Panne, alph, Yang
CC:
v8-dev, loislo
Visibility:
Public.

Description

Move V8EXPORT definition to its own file It is defined in each header of V8 public API and the definition already have some slight discrepancies. This CL makes all headers use the same definition. BUG=None

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reverted preparser/preparser.gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -226 lines) Patch
M include/v8.h View 2 chunks +1 line, -37 lines 0 comments Download
M include/v8-debug.h View 2 chunks +1 line, -35 lines 0 comments Download
A + include/v8-export.h View 3 chunks +16 lines, -54 lines 0 comments Download
M include/v8-preparser.h View 2 chunks +1 line, -37 lines 0 comments Download
M include/v8-profiler.h View 2 chunks +0 lines, -33 lines 0 comments Download
M include/v8-testing.h View 1 chunk +0 lines, -30 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
yurys
7 years, 4 months ago (2013-08-05 14:32:28 UTC) #1
Yang
https://codereview.chromium.org/22093003/diff/1/preparser/preparser.gyp File preparser/preparser.gyp (right): https://codereview.chromium.org/22093003/diff/1/preparser/preparser.gyp#newcode53 preparser/preparser.gyp:53: '../include/v8-export.h', this doesn't seem to be necessary.
7 years, 4 months ago (2013-08-05 15:47:40 UTC) #2
yurys
https://codereview.chromium.org/22093003/diff/1/preparser/preparser.gyp File preparser/preparser.gyp (right): https://codereview.chromium.org/22093003/diff/1/preparser/preparser.gyp#newcode53 preparser/preparser.gyp:53: '../include/v8-export.h', On 2013/08/05 15:47:40, Yang wrote: > this doesn't ...
7 years, 4 months ago (2013-08-05 15:49:30 UTC) #3
Sven Panne
NOT LGTM. Wouldn't it be much simpler to keep the one-and-only definition in include/v8.h and ...
7 years, 4 months ago (2013-08-05 16:26:41 UTC) #4
yurys
On 2013/08/05 16:26:41, Sven Panne wrote: > NOT LGTM. Wouldn't it be much simpler to ...
7 years, 4 months ago (2013-08-06 07:02:47 UTC) #5
yurys
7 years, 4 months ago (2013-08-06 07:42:08 UTC) #6
On 2013/08/05 16:26:41, Sven Panne wrote:
> NOT LGTM. Wouldn't it be much simpler to keep the one-and-only definition in
> include/v8.h and remove the #undef plus the copies of the CPP madness instead?
> 
> I don't think that #undef'ing something we #define'd before will help anybody.
A
> much more common, simple rule is to reserve a prefix for #defines in the
> external headers (e.g. GL_ for OpenGL etc.).
> 
> Therefore I propose to drop this CL and make a differente CL that makes all
our
> macros have a V8_ prefix + drop copies of redundant macros. No #undefs
involved.

Done. Please review at https://codereview.chromium.org/22363003/

Powered by Google App Engine
This is Rietveld 408576698