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

Issue 12095035: %X => %_X, %_X => %__X (Closed)

Created:
7 years, 10 months ago by dcarney
Modified:
7 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

%X => %_X, %_X => %__X R=mstarzinger@chromium.org BUG=

Patch Set 1 #

Patch Set 2 : rebase and fix spacing issue #

Total comments: 5

Patch Set 3 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -218 lines) Patch
M src/arm/full-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 1 2 2 chunks +11 lines, -6 lines 0 comments Download
M src/runtime.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/fuzz-natives-part1.js View 1 chunk +51 lines, -51 lines 0 comments Download
M test/mjsunit/fuzz-natives-part2.js View 1 chunk +50 lines, -50 lines 0 comments Download
M test/mjsunit/fuzz-natives-part3.js View 1 chunk +50 lines, -50 lines 0 comments Download
M test/mjsunit/fuzz-natives-part4.js View 1 chunk +50 lines, -50 lines 0 comments Download
M test/mjsunit/regress/regress-2286.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Michael Starzinger
First round of comments. There are missing adaptations in macros.py because the IS_VAR macro is ...
7 years, 10 months ago (2013-01-31 15:04:53 UTC) #1
drcarney
7 years, 10 months ago (2013-01-31 15:20:47 UTC) #2
the IS_VAR thing is handled everywhere automatically

https://chromiumcodereview.appspot.com/12095035/diff/1013/src/parser.cc
File src/parser.cc (right):

https://chromiumcodereview.appspot.com/12095035/diff/1013/src/parser.cc#newco...
src/parser.cc:4625: // %IS_VAR(x) evaluates to x if x is a variable,
On 2013/01/31 15:04:53, Michael Starzinger wrote:
> Comment about IS_VAR needs adaptation as well.

This gets handled by the automatic replace

https://chromiumcodereview.appspot.com/12095035/diff/1013/src/parser.cc#newco...
src/parser.cc:4654: name = isolate()->factory()->NewSubString(name, 1,
name->length());
On 2013/01/31 15:04:53, Michael Starzinger wrote:
> This essentially merge the "%foo" and "%_foo" namespace at the moment, which
is
> probably not what we want. Instead the "%foo" namespace should be checked
> against a white-list of allowed API-instrinsics. That white-list is empty for
> now.
> 
> Also the AST node generated at the end of this function needs to know the
> distinction between API-intrinsics and runtime-intrinsics, because otherwise
> that distinction would be lost by the name mangling.

Yes, I was planning this for the patch that actually introduces the public
intrinsics.

Powered by Google App Engine
This is Rietveld 408576698