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

Side by Side Diff: runtime/vm/object.cc

Issue 2314133003: AOT: Use a cid range check when possible to implement type tests. (Closed)
Patch Set: symbols Created 4 years, 3 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/method_recognizer.h ('k') | runtime/vm/precompiler.h » ('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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/become.h" 10 #include "vm/become.h"
(...skipping 11385 matching lines...) Expand 10 before | Expand all | Expand 10 after
11396 #define CHECK_FINGERPRINTS2(class_name, function_name, dest, type, fp) \ 11396 #define CHECK_FINGERPRINTS2(class_name, function_name, dest, type, fp) \
11397 CHECK_FINGERPRINTS(class_name, function_name, dest, fp) 11397 CHECK_FINGERPRINTS(class_name, function_name, dest, fp)
11398 11398
11399 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); 11399 all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary()));
11400 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); 11400 CORE_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11401 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); 11401 CORE_INTEGER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11402 11402
11403 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary())); 11403 all_libs.Add(&Library::ZoneHandle(Library::MathLibrary()));
11404 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); 11404 all_libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary()));
11405 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); 11405 all_libs.Add(&Library::ZoneHandle(Library::CollectionLibrary()));
11406 all_libs.Add(&Library::ZoneHandle(Library::InternalLibrary()));
11406 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS2); 11407 OTHER_RECOGNIZED_LIST(CHECK_FINGERPRINTS2);
11407 INLINE_WHITE_LIST(CHECK_FINGERPRINTS); 11408 INLINE_WHITE_LIST(CHECK_FINGERPRINTS);
11408 INLINE_BLACK_LIST(CHECK_FINGERPRINTS); 11409 INLINE_BLACK_LIST(CHECK_FINGERPRINTS);
11409 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS); 11410 POLYMORPHIC_TARGET_LIST(CHECK_FINGERPRINTS);
11410 11411
11411 all_libs.Clear(); 11412 all_libs.Clear();
11412 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); 11413 all_libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary()));
11413 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2); 11414 DEVELOPER_LIB_INTRINSIC_LIST(CHECK_FINGERPRINTS2);
11414 11415
11415 all_libs.Clear(); 11416 all_libs.Clear();
(...skipping 11350 matching lines...) Expand 10 before | Expand all | Expand 10 after
22766 return UserTag::null(); 22767 return UserTag::null();
22767 } 22768 }
22768 22769
22769 22770
22770 const char* UserTag::ToCString() const { 22771 const char* UserTag::ToCString() const {
22771 const String& tag_label = String::Handle(label()); 22772 const String& tag_label = String::Handle(label());
22772 return tag_label.ToCString(); 22773 return tag_label.ToCString();
22773 } 22774 }
22774 22775
22775 } // namespace dart 22776 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698