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

Issue 1095563003: [refactor] js_codegen: remove currentClass, simplify visitSimpleIdentifier (Closed)

Created:
5 years, 8 months ago by Jennifer Messerly
Modified:
5 years, 8 months ago
Reviewers:
Jacob
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[refactor] js_codegen: remove currentClass, simplify visitSimpleIdentifier We were tracking currentClass for no real reason. Also attempted to discern what visitSimpleIdentifier was actually doing. It now prefers the original element (the "field" not the synthetic getter/setter) whenever possible. Previously was a mismash. This little change tripped on the (larger, not fixed yet) issue #138 ... but I think I found a way around the issue for now, by tweaking the private TypeDataArray class. R=jacobr@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/23fb9a7823b28e5371b5a4b30a1e786df54ae3f3

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -36 lines) Patch
M lib/runtime/dart/_native_typed_data.js View 3 chunks +6 lines, -3 lines 1 comment Download
M lib/src/codegen/js_codegen.dart View 5 chunks +29 lines, -31 lines 2 comments Download
M test/generated_sdk/lib/_internal/compiler/js_lib/native_typed_data.dart View 3 chunks +6 lines, -1 line 0 comments Download
M tool/input_sdk/private/native_typed_data.dart View 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
Jennifer Messerly
https://codereview.chromium.org/1095563003/diff/1/lib/runtime/dart/_native_typed_data.js File lib/runtime/dart/_native_typed_data.js (left): https://codereview.chromium.org/1095563003/diff/1/lib/runtime/dart/_native_typed_data.js#oldcode586 lib/runtime/dart/_native_typed_data.js:586: return dart.as(this.length, core.int); this would've overflowed the stack https://codereview.chromium.org/1095563003/diff/1/lib/src/codegen/js_codegen.dart ...
5 years, 8 months ago (2015-04-16 22:50:30 UTC) #2
Jennifer Messerly
friendly ping. This one shouldn't be too bad :)
5 years, 8 months ago (2015-04-21 16:26:43 UTC) #3
Jacob
lgtm
5 years, 8 months ago (2015-04-21 17:46:03 UTC) #4
Jennifer Messerly
5 years, 8 months ago (2015-04-21 18:21:24 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
23fb9a7823b28e5371b5a4b30a1e786df54ae3f3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698