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

Issue 1670923003: [bootstrapper] extra natives must not use natives syntax. (Closed)

Created:
4 years, 10 months ago by Yang
Modified:
4 years, 10 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

[bootstrapper] extra natives must not use natives syntax. R=bmeurer@chromium.org, domenic@chromium.org Committed: https://crrev.com/8a2d571734f77484b75639bf4455a5abb5f7442a Cr-Commit-Position: refs/heads/master@{#33770}

Patch Set 1 #

Patch Set 2 : hide source and stack trace #

Patch Set 3 : fix test #

Patch Set 4 : fix test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -16 lines) Patch
M src/bootstrapper.h View 1 chunk +1 line, -1 line 0 comments Download
M src/bootstrapper.cc View 1 6 chunks +8 lines, -8 lines 0 comments Download
M src/compiler.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/extensions/externalize-string-extension.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/globals.h View 1 1 chunk +1 line, -1 line 1 comment Download
M src/runtime/runtime-test.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download
M test/cctest/test-extra.js View 1 1 chunk +9 lines, -0 lines 0 comments Download
M test/mjsunit/debug-script.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Yang
4 years, 10 months ago (2016-02-05 06:52:21 UTC) #1
Benedikt Meurer
LGTM.
4 years, 10 months ago (2016-02-05 06:55:25 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670923003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670923003/20001
4 years, 10 months ago (2016-02-05 08:37:39 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/13351)
4 years, 10 months ago (2016-02-05 08:51:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670923003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670923003/40001
4 years, 10 months ago (2016-02-05 08:59:24 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/13353)
4 years, 10 months ago (2016-02-05 09:14:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670923003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670923003/60001
4 years, 10 months ago (2016-02-05 12:11:03 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-05 12:33:24 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8a2d571734f77484b75639bf4455a5abb5f7442a Cr-Commit-Position: refs/heads/master@{#33770}
4 years, 10 months ago (2016-02-05 12:34:07 UTC) #18
domenic
Thanks for taking care of this Yang! This also means no % functions, right? I ...
4 years, 10 months ago (2016-02-05 19:00:27 UTC) #19
Yang
4 years, 10 months ago (2016-02-05 19:04:58 UTC) #20
Message was sent while issue was closed.
On 2016/02/05 19:00:27, domenic wrote:
> Thanks for taking care of this Yang!
> 
> This also means no % functions, right? I didn't see a test for that, although
I
> assume it's harder to test. Just wanted to confirm so that I can knock that
off
> my to-do list.

Correct. Unfortunately, without natives syntax, %Function causes an early syntax
error, so there is no way to test this without breaking the entire build.

> 
> https://codereview.chromium.org/1670923003/diff/60001/src/globals.h
> File src/globals.h (right):
> 
> https://codereview.chromium.org/1670923003/diff/60001/src/globals.h#newcode532
> src/globals.h:532: enum NativesFlag { NOT_NATIVES_CODE, EXTENSION_CODE,
> NATIVES_CODE };
> Should it be EXTRAS_CODE?

This is intentional. I realized that we were not doing the right thing for
extensions either. We essentially have three kinds of code:
- native code, where we have natives syntax (%Function), hide the source and
stack frames from stack traces.
- user code, where we do not have natives syntax, do not hide the source and
stack frames show up in the stack trace.
- extension and extras code, where we do not have natives syntax, but hide the
source and stack frames.

Since extras and extensions do not differ in this regard, I just lumped them
together.

Powered by Google App Engine
This is Rietveld 408576698