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

Side by Side Diff: dart/frog/leg/ssa/builder.dart

Issue 9419009: Use shared implementation of Stopwatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: address review comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/frog/leg/resolver.dart ('k') | dart/frog/leg/warnings.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class Interceptors { 5 class Interceptors {
6 Compiler compiler; 6 Compiler compiler;
7 Interceptors(Compiler this.compiler); 7 Interceptors(Compiler this.compiler);
8 8
9 SourceString mapOperatorToMethodName(Operator op) { 9 SourceString mapOperatorToMethodName(Operator op) {
10 String name = op.source.stringValue; 10 String name = op.source.stringValue;
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 HInstruction context = localsHandler.readThis(); 1578 HInstruction context = localsHandler.readThis();
1579 add(target); 1579 add(target);
1580 var inputs = <HInstruction>[target, context]; 1580 var inputs = <HInstruction>[target, context];
1581 addStaticSendArgumentsToList(node, element, inputs); 1581 addStaticSendArgumentsToList(node, element, inputs);
1582 push(new HInvokeSuper(selector, inputs)); 1582 push(new HInvokeSuper(selector, inputs));
1583 } 1583 }
1584 1584
1585 visitStaticSend(Send node) { 1585 visitStaticSend(Send node) {
1586 Selector selector = elements.getSelector(node); 1586 Selector selector = elements.getSelector(node);
1587 Element element = elements[node]; 1587 Element element = elements[node];
1588 if (element.kind != ElementKind.FUNCTION && 1588 if (element.kind === ElementKind.GENERATIVE_CONSTRUCTOR) {
1589 element.kind != ElementKind.GENERATIVE_CONSTRUCTOR) { 1589 compiler.resolver.resolveMethodElement(element);
1590 element = element.defaultImplementation;
1591 } else if (element.kind != ElementKind.FUNCTION) {
1590 compiler.unimplemented( 1592 compiler.unimplemented(
1591 "SsaBuilder.visitStaticSend static field invocation", 1593 "SsaBuilder.visitStaticSend static field invocation",
1592 node: node); 1594 node: node);
1593 } 1595 }
1594 HStatic target = new HStatic(element); 1596 HStatic target = new HStatic(element);
1595 add(target); 1597 add(target);
1596 var inputs = <HInstruction>[]; 1598 var inputs = <HInstruction>[];
1597 inputs.add(target); 1599 inputs.add(target);
1598 addStaticSendArgumentsToList(node, element, inputs); 1600 addStaticSendArgumentsToList(node, element, inputs);
1599 push(new HInvokeStatic(selector, inputs)); 1601 push(new HInvokeStatic(selector, inputs));
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2068 } 2070 }
2069 2071
2070 visitCatchBlock(CatchBlock node) { 2072 visitCatchBlock(CatchBlock node) {
2071 visit(node.block); 2073 visit(node.block);
2072 } 2074 }
2073 2075
2074 visitTypedef(Typedef node) { 2076 visitTypedef(Typedef node) {
2075 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 2077 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
2076 } 2078 }
2077 } 2079 }
OLDNEW
« no previous file with comments | « dart/frog/leg/resolver.dart ('k') | dart/frog/leg/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698