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

Issue 2654113002: [ast] Annotate CallRuntime ast node (Closed)

Created:
3 years, 11 months ago by gsathya
Modified:
3 years, 10 months ago
Reviewers:
caitp, neis, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ast] Annotate Runtime ast nodes Changes output from CALL RUNTIME (context function) code = 0x3e9ea90a2049 at -1 to CALL RUNTIME async_function_promise_create code = 0x3e9ea90a2049 at -1 This makes the ast more useful. I didn't annotate all the runtime calls, only some for now. We can annotate others if necessary. Review-Url: https://codereview.chromium.org/2654113002 Cr-Commit-Position: refs/heads/master@{#42671} Committed: https://chromium.googlesource.com/v8/v8/+/c6f925d7ed002e4bbd57a674cf90627384c81964

Patch Set 1 #

Patch Set 2 : annotate one more #

Patch Set 3 : fix #

Total comments: 6

Patch Set 4 : move to ast.cc #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -5 lines) Patch
M src/ast/ast.h View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M src/ast/ast.cc View 1 2 3 2 chunks +23 lines, -0 lines 1 comment Download

Messages

Total messages: 39 (25 generated)
gsathya
3 years, 11 months ago (2017-01-25 17:24:33 UTC) #6
adamk
I like the idea, but I don't think we should spend any AST memory on ...
3 years, 11 months ago (2017-01-25 19:23:54 UTC) #13
gsathya
On 2017/01/25 19:23:54, adamk wrote: > I like the idea, but I don't think we ...
3 years, 11 months ago (2017-01-25 20:04:15 UTC) #18
adamk
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { Rather than copying ...
3 years, 11 months ago (2017-01-25 20:26:43 UTC) #19
gsathya
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { On 2017/01/25 20:26:43, ...
3 years, 11 months ago (2017-01-25 21:05:19 UTC) #22
adamk
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { On 2017/01/25 21:05:19, ...
3 years, 11 months ago (2017-01-25 21:11:18 UTC) #23
gsathya
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { On 2017/01/25 21:11:17, ...
3 years, 11 months ago (2017-01-25 21:17:17 UTC) #24
adamk
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { On 2017/01/25 21:17:17, ...
3 years, 11 months ago (2017-01-25 23:13:58 UTC) #25
gsathya
https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2654113002/diff/50001/src/ast/ast.h#newcode115 src/ast/ast.h:115: static const char* NameForNativeContextIntrinsicIndex(uint32_t idx) { On 2017/01/25 23:13:58, ...
3 years, 11 months ago (2017-01-25 23:27:25 UTC) #28
adamk
lgtm
3 years, 11 months ago (2017-01-25 23:31:23 UTC) #29
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/2654113002/70001
3 years, 11 months ago (2017-01-26 00:00:09 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:70001) as https://chromium.googlesource.com/v8/v8/+/c6f925d7ed002e4bbd57a674cf90627384c81964
3 years, 11 months ago (2017-01-26 00:02:09 UTC) #36
neis
Nice!
3 years, 11 months ago (2017-01-26 08:04:53 UTC) #37
caitp
3 years, 10 months ago (2017-01-29 05:32:33 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/2654113002/diff/70001/src/ast/ast.cc
File src/ast/ast.cc (right):

https://codereview.chromium.org/2654113002/diff/70001/src/ast/ast.cc#newcode1084
src/ast/ast.cc:1084: return NameForNativeContextIntrinsicIndex(context_index_);
Hey, sorry I didn't catch this sooner. This makes intrinsics not installed on
the native context print the useless "UnknownIntrinsicIndex".

This needs a `is_jsruntime()` predicate like in the release build case below

Powered by Google App Engine
This is Rietveld 408576698