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

Issue 1061543004: small refactor to move JsPeer code out of _finishClassDef (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

small refactor to move JsPeer code out of _finishClassDef Nothing wrong with it there, but it was tangled up with the _emitClassIfNeeded code I'm trying to fix for use-before-define issues. Also _finishClassDef's reason for existing is shared code between FunctionTypeAlias/ClassTypeAlias/ClassDeclaration, so the fact that only one of those cares about jsPeer was a sign. (My first thought was actually _finishClassMembers, but discovered the generics issue: https://github.com/dart-lang/dev_compiler/issues/154) R=jacobr@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/7fc439ae08e39884e8c9410e95e0006a6f8ab5cf

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -16 lines) Patch
M lib/src/codegen/js_codegen.dart View 6 chunks +19 lines, -16 lines 2 comments Download

Messages

Total messages: 6 (1 generated)
Jennifer Messerly
5 years, 8 months ago (2015-04-23 17:03:39 UTC) #2
Jennifer Messerly
https://codereview.chromium.org/1061543004/diff/1/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1061543004/diff/1/lib/src/codegen/js_codegen.dart#newcode354 lib/src/codegen/js_codegen.dart:354: 'dart.copyProperties(dart.global.#.prototype, #.prototype);', [ hmmm, it occurs to me we ...
5 years, 8 months ago (2015-04-23 17:05:43 UTC) #3
Jacob
lgtm https://codereview.chromium.org/1061543004/diff/1/lib/src/codegen/js_codegen.dart File lib/src/codegen/js_codegen.dart (right): https://codereview.chromium.org/1061543004/diff/1/lib/src/codegen/js_codegen.dart#newcode354 lib/src/codegen/js_codegen.dart:354: 'dart.copyProperties(dart.global.#.prototype, #.prototype);', [ On 2015/04/23 17:05:43, John Messerly ...
5 years, 8 months ago (2015-04-23 17:09:14 UTC) #4
Jennifer Messerly
Thanks! adding the assert with this comment: // This class isn't allowed to be lazy, ...
5 years, 8 months ago (2015-04-23 17:16:13 UTC) #5
Jennifer Messerly
5 years, 8 months ago (2015-04-23 17:17:17 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
7fc439ae08e39884e8c9410e95e0006a6f8ab5cf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698