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

Issue 1475383002: [compiler] Always pass closure argument to with, catch and block context creation. (Closed)

Created:
5 years ago by Benedikt Meurer
Modified:
5 years ago
Reviewers:
Yang
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

[compiler] Always pass closure argument to with, catch and block context creation. Up until now we sometimes pass Smi 0 around as closure and expect the runtime to translate that appropriately. But we need to be careful in some places to not confuse the Smi 0 with a real closure. However, we could instead just pass the correct closure extracted from the native context. This addresses three long-standing TODOs in the JSTypedLowering pass. Drive-by-fix: Further unify error message reporting for ToObject (we had a special message in case of ToObject error in with context creation). R=yangguo@chromium.org Committed: https://crrev.com/d3e5db04287b0b853e28552119e4177eb3bf10b9 Cr-Commit-Position: refs/heads/master@{#32336}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove WithExpression from messages.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -90 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 3 chunks +4 lines, -19 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M src/messages.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-scopes.cc View 3 chunks +10 lines, -43 lines 0 comments Download
M test/mjsunit/messages.js View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Benedikt Meurer
5 years ago (2015-11-26 12:43:20 UTC) #1
Benedikt Meurer
Hey Yang, Here's some cleanup for the context creation runtime entries, avoiding a magic Smi ...
5 years ago (2015-11-26 12:44:03 UTC) #2
Yang
lgtm with comment. https://codereview.chromium.org/1475383002/diff/1/src/runtime/runtime-scopes.cc File src/runtime/runtime-scopes.cc (left): https://codereview.chromium.org/1475383002/diff/1/src/runtime/runtime-scopes.cc#oldcode719 src/runtime/runtime-scopes.cc:719: isolate, NewTypeError(MessageTemplate::kWithExpression, handle)); Please also remove ...
5 years ago (2015-11-26 12:46:04 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1475383002/diff/1/src/runtime/runtime-scopes.cc File src/runtime/runtime-scopes.cc (left): https://codereview.chromium.org/1475383002/diff/1/src/runtime/runtime-scopes.cc#oldcode719 src/runtime/runtime-scopes.cc:719: isolate, NewTypeError(MessageTemplate::kWithExpression, handle)); On 2015/11/26 12:46:04, Yang wrote: > ...
5 years ago (2015-11-26 12:47:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475383002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475383002/20001
5 years ago (2015-11-26 12:48:04 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-11-26 13:35:14 UTC) #8
commit-bot: I haz the power
5 years ago (2015-11-26 13:35:34 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d3e5db04287b0b853e28552119e4177eb3bf10b9
Cr-Commit-Position: refs/heads/master@{#32336}

Powered by Google App Engine
This is Rietveld 408576698