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

Issue 10668021: Distinguish statement and expression foreign code. (Closed)

Created:
8 years, 6 months ago by floitsch
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org, ngeoffray
Visibility:
Public.

Description

Distinguish statement and expression foreign code. Committed: https://code.google.com/p/dart/source/detail?r=9159

Patch Set 1 #

Patch Set 2 : Add parenthesis. #

Patch Set 3 : After rebase no need for parenthesis anymore. #

Total comments: 2

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -16 lines) Patch
M lib/compiler/implementation/lib/native_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/native_handler.dart View 1 chunk +1 line, -3 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 3 9 chunks +13 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
floitsch
I tested this by adding parenthesis ("(", ")") around all foreign expressions and curly braces ...
8 years, 6 months ago (2012-06-25 12:45:08 UTC) #1
floitsch
Turns out that we need the parenthesis around foreigns now. The reason: when transforming "if"s ...
8 years, 6 months ago (2012-06-25 15:39:41 UTC) #2
Lasse Reichstein Nielsen
LGTM. The ultimate hack would be making JS take a precedence parameter, and parenthesize it ...
8 years, 6 months ago (2012-06-26 14:11:27 UTC) #3
floitsch
After https://chromiumcodereview.appspot.com/10669035/ we don't the parenthesis anymore. PTAL.
8 years, 6 months ago (2012-06-26 16:37:53 UTC) #4
Lasse Reichstein Nielsen
Shouldn't there be something in codegen that outputs the removed ';' for statements? Otherwise LGTM. ...
8 years, 6 months ago (2012-06-27 08:10:16 UTC) #5
floitsch
8 years, 5 months ago (2012-06-27 12:04:43 UTC) #6
The semicolon was double. So no need to compensate anywhere.

http://codereview.chromium.org/10668021/diff/5002/lib/compiler/implementation...
File lib/compiler/implementation/ssa/nodes.dart (right):

http://codereview.chromium.org/10668021/diff/5002/lib/compiler/implementation...
lib/compiler/implementation/ssa/nodes.dart:1324: final bool _isStatement;
On 2012/06/27 08:10:16, Lasse Reichstein Nielsen wrote:
> Just make this non-private and final. No need to wrap a final field in a
getter.
> And make isStatement a getter, obviously :)

Done.

Powered by Google App Engine
This is Rietveld 408576698