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

Side by Side Diff: runtime/vm/symbols.h

Issue 1222863003: Make frequent type checks (instanceof) faster by adding dedicated instanceof methods; improves dart… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: flag Created 5 years, 5 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
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | 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 #ifndef VM_SYMBOLS_H_ 5 #ifndef VM_SYMBOLS_H_
6 #define VM_SYMBOLS_H_ 6 #define VM_SYMBOLS_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/snapshot_ids.h" 9 #include "vm/snapshot_ids.h"
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 V(Malbounded, "malbounded") \ 304 V(Malbounded, "malbounded") \
305 V(MegamorphicMiss, "megamorphic_miss") \ 305 V(MegamorphicMiss, "megamorphic_miss") \
306 V(CommaSpace, ", ") \ 306 V(CommaSpace, ", ") \
307 V(ColonSpace, ": ") \ 307 V(ColonSpace, ": ") \
308 V(RParenArrow, ") => ") \ 308 V(RParenArrow, ") => ") \
309 V(SpaceExtendsSpace, " extends ") \ 309 V(SpaceExtendsSpace, " extends ") \
310 V(SwitchExpr, ":switch_expr") \ 310 V(SwitchExpr, ":switch_expr") \
311 V(TwoNewlines, "\n\n") \ 311 V(TwoNewlines, "\n\n") \
312 V(TwoSpaces, " ") \ 312 V(TwoSpaces, " ") \
313 V(_instanceOf, "_instanceOf") \ 313 V(_instanceOf, "_instanceOf") \
314 V(_instanceOfSmi, "_instanceOfSmi") \
315 V(_instanceOfNum, "_instanceOfNum") \
316 V(_instanceOfInt, "_instanceOfInt") \
317 V(_instanceOfDouble, "_instanceOfDouble") \
318 V(_instanceOfString, "_instanceOfString") \
314 V(_as, "_as") \ 319 V(_as, "_as") \
315 V(GetterPrefix, "get:") \ 320 V(GetterPrefix, "get:") \
316 V(SetterPrefix, "set:") \ 321 V(SetterPrefix, "set:") \
317 V(InitPrefix, "init:") \ 322 V(InitPrefix, "init:") \
318 V(_New, "_new") \ 323 V(_New, "_new") \
319 V(Index, "index") \ 324 V(Index, "index") \
320 V(DartScheme, "dart:") \ 325 V(DartScheme, "dart:") \
321 V(DartSchemePrivate, "dart:_") \ 326 V(DartSchemePrivate, "dart:_") \
322 V(DartNativeWrappers, "dart:nativewrappers") \ 327 V(DartNativeWrappers, "dart:nativewrappers") \
323 V(DartNativeWrappersLibName, "dart.nativewrappers") \ 328 V(DartNativeWrappersLibName, "dart.nativewrappers") \
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 friend class SnapshotReader; 626 friend class SnapshotReader;
622 friend class SnapshotWriter; 627 friend class SnapshotWriter;
623 friend class ApiMessageReader; 628 friend class ApiMessageReader;
624 629
625 DISALLOW_COPY_AND_ASSIGN(Symbols); 630 DISALLOW_COPY_AND_ASSIGN(Symbols);
626 }; 631 };
627 632
628 } // namespace dart 633 } // namespace dart
629 634
630 #endif // VM_SYMBOLS_H_ 635 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698