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

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

Issue 8872049: First debugger API unit test (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/vm_sources.gypi » ('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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698