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

Issue 188433002: Instruction selection before removing HTypeKnown (Closed)

Created:
6 years, 9 months ago by sra1
Modified:
6 years, 9 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org, dart2js-team_google.com
Visibility:
Public.

Description

Instruction selection before removing HTypeKnown Example for HIdentity - this is quite rare because we don't strengthen types on 'if (x == null)' ... t1.appendChild(element); t2 = J.get$form$x(element); return t2 == null ? t1 == null : t2 === t1; ---> ... t1.appendChild(element); // t1 can't be null after here return J.get$form$x(element) === t1; Example of HIsViaInterceptor (0.50% smaller swarm) t1 = J.getInterceptor(x); if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.$isList)) return this.visitList$1(x); if (typeof x === "object" && x !== null && !!t1.$isMap) return this.visitMap$1(x); if (typeof x === "object" && x !== null && !!t1.$isSendPort) return this.visitSendPort$1(x); ---> t1 = J.getInterceptor(x); if (!!t1.$isList) return this.visitList$1(x); if (!!t1.$isMap) return this.visitMap$1(x); if (!!t1.$isSendPort) return this.visitSendPort$1(x); R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=33510

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -40 lines) Patch
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 8 chunks +24 lines, -26 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen_helpers.dart View 1 2 chunks +84 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart View 1 2 chunks +14 lines, -11 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/nodes.dart View 1 6 chunks +39 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/tracer.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/strength_eq_test.dart View 1 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sra1
What do you think of this 'instruction selection' phase to introduce new instructions that make ...
6 years, 9 months ago (2014-03-08 02:57:21 UTC) #1
floitsch
LGTM with tests.
6 years, 9 months ago (2014-03-10 17:35:31 UTC) #2
sra1
6 years, 9 months ago (2014-03-11 00:06:28 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r33510 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698