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

Issue 2987703002: Simplify and fix implicit closure check, speed up Closure_equals, v2 (Closed)

Created:
3 years, 5 months ago by alexmarkov
Modified:
3 years, 5 months ago
Reviewers:
zra, rmacnak, siva
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Simplify and fix implicit closure check, speed up Closure_equals, v2 This is the re-application of 44e8da3ecd23de5fdd022d6de0d2ec895cc37beb with fixes: * Dartanalyzer error is fixed in the new test isolate/message4_test * The new test is skipped in the status file in dart2j/non-d8 modes, issue #30247 is created. * Minor tweak of Closure_equals: other.IsClosure() is tested earlier. Original CL review: https://codereview.chromium.org/2989493002/ Original CL description: This CL introduces a new Function kind, kImplicitClosureFunction, in order to simplify check for implicit closures and make it more efficient. This CL also fixes Function::IsImplicitStaticClosureFunction(RawFunction*) to correctly handle implicit closures created from static native functions. Closes #30203. As the result of a faster check for implicit closures and slight refactoring of Closure_equals, micro-benchmark exercising Closure_equals speeds up from 9618ms to 6700ms for implicit closures case and insignificantly for other cases. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/bda3c9c2b24f4d1b98c2e333bbc0d09bcc81f14c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -73 lines) Patch
M runtime/lib/function.cc View 1 chunk +20 lines, -23 lines 0 comments Download
M runtime/observatory/lib/src/elements/function_view.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/function.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 6 chunks +23 lines, -4 lines 0 comments Download
M runtime/vm/object.cc View 8 chunks +44 lines, -42 lines 0 comments Download
M runtime/vm/parser.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/source_report.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tests/isolate/isolate.status View 1 chunk +1 line, -0 lines 0 comments Download
A tests/isolate/message4_test.dart View 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
alexmarkov
3 years, 5 months ago (2017-07-24 16:09:43 UTC) #2
zra
lgtm
3 years, 5 months ago (2017-07-24 16:41:23 UTC) #3
alexmarkov
3 years, 5 months ago (2017-07-24 16:43:59 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
bda3c9c2b24f4d1b98c2e333bbc0d09bcc81f14c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698