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

Side by Side Diff: sdk/lib/_internal/lib/annotations.dart

Issue 108333007: tests for inlining between IR and AST functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix comments Created 7 years 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of _js_helper; 5 part of _js_helper;
6 6
7 /// Tells the optimizing compiler that the annotated method has no 7 /// Tells the optimizing compiler that the annotated method has no
8 /// side-effects. 8 /// side-effects.
9 /// Requires @NoInline() to function correctly. 9 /// Requires @NoInline() to function correctly.
10 class NoSideEffects { 10 class NoSideEffects {
11 const NoSideEffects(); 11 const NoSideEffects();
12 } 12 }
13 13
14 /// Tells the optimizing compiler that the annotated method cannot throw. 14 /// Tells the optimizing compiler that the annotated method cannot throw.
15 /// Requires @NoInline() to function correctly. 15 /// Requires @NoInline() to function correctly.
16 class NoThrows { 16 class NoThrows {
17 const NoThrows(); 17 const NoThrows();
18 } 18 }
19 19
20 /// Tells the optimizing compiler to not inline the annotated method. 20 /// Tells the optimizing compiler to not inline the annotated method.
21 class NoInline { 21 class NoInline {
22 const NoInline(); 22 const NoInline();
23 } 23 }
24
25 // Ensures that the annotated method is represented internally using
26 // IR nodes ([:value == true:]) or AST nodes ([:value == false:]).
27 class IrRepresentation {
28 final bool value;
29 const IrRepresentation(this.value);
30 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_backend/backend.dart ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698