| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/bigint_operations.h" | 9 #include "vm/bigint_operations.h" |
| 10 #include "vm/bootstrap.h" | 10 #include "vm/bootstrap.h" |
| (...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 // Instead of truncating the type argument vector to the length of the super | 1398 // Instead of truncating the type argument vector to the length of the super |
| 1399 // type argument vector, we make sure that the code works with a vector that | 1399 // type argument vector, we make sure that the code works with a vector that |
| 1400 // is longer than necessary. | 1400 // is longer than necessary. |
| 1401 return super_class.IsMoreSpecificThan(type_arguments, | 1401 return super_class.IsMoreSpecificThan(type_arguments, |
| 1402 other, | 1402 other, |
| 1403 other_type_arguments); | 1403 other_type_arguments); |
| 1404 } | 1404 } |
| 1405 | 1405 |
| 1406 | 1406 |
| 1407 bool Class::IsTopLevel() const { | 1407 bool Class::IsTopLevel() const { |
| 1408 return String::Handle(Name()).Length() == 0; | 1408 return String::Handle(Name()).Equals("::"); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 | 1411 |
| 1412 bool Class::TestType(TypeTestKind test, | 1412 bool Class::TestType(TypeTestKind test, |
| 1413 const AbstractTypeArguments& type_arguments, | 1413 const AbstractTypeArguments& type_arguments, |
| 1414 const Class& other, | 1414 const Class& other, |
| 1415 const AbstractTypeArguments& other_type_arguments) const { | 1415 const AbstractTypeArguments& other_type_arguments) const { |
| 1416 ASSERT(is_finalized() || !ClassFinalizer::AllClassesFinalized()); | 1416 ASSERT(is_finalized() || !ClassFinalizer::AllClassesFinalized()); |
| 1417 ASSERT(other.is_finalized() || !ClassFinalizer::AllClassesFinalized()); | 1417 ASSERT(other.is_finalized() || !ClassFinalizer::AllClassesFinalized()); |
| 1418 if (test == kIsAssignableTo) { | 1418 if (test == kIsAssignableTo) { |
| (...skipping 5913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7332 const String& str = String::Handle(pattern()); | 7332 const String& str = String::Handle(pattern()); |
| 7333 const char* format = "JSRegExp: pattern=%s flags=%s"; | 7333 const char* format = "JSRegExp: pattern=%s flags=%s"; |
| 7334 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); | 7334 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); |
| 7335 char* chars = reinterpret_cast<char*>( | 7335 char* chars = reinterpret_cast<char*>( |
| 7336 Isolate::Current()->current_zone()->Allocate(len + 1)); | 7336 Isolate::Current()->current_zone()->Allocate(len + 1)); |
| 7337 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); | 7337 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); |
| 7338 return chars; | 7338 return chars; |
| 7339 } | 7339 } |
| 7340 | 7340 |
| 7341 } // namespace dart | 7341 } // namespace dart |
| OLD | NEW |