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

Side by Side Diff: vm/object.h

Issue 10826191: Improve the stack trace output to be more readable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 static RawInstantiatedTypeArguments* New(); 1328 static RawInstantiatedTypeArguments* New();
1329 1329
1330 HEAP_OBJECT_IMPLEMENTATION(InstantiatedTypeArguments, AbstractTypeArguments); 1330 HEAP_OBJECT_IMPLEMENTATION(InstantiatedTypeArguments, AbstractTypeArguments);
1331 friend class Class; 1331 friend class Class;
1332 }; 1332 };
1333 1333
1334 1334
1335 class Function : public Object { 1335 class Function : public Object {
1336 public: 1336 public:
1337 RawString* name() const { return raw_ptr()->name_; } 1337 RawString* name() const { return raw_ptr()->name_; }
1338 RawString* UserVisibleName() const;
1339 RawString* QualifiedUserVisibleName() const;
1338 1340
1339 // Build a string of the form '<T, R>(T, [b: B, c: C]) => R' representing the 1341 // Build a string of the form '<T, R>(T, [b: B, c: C]) => R' representing the
1340 // internal signature of the given function. 1342 // internal signature of the given function.
1341 RawString* Signature() const { 1343 RawString* Signature() const {
1342 const bool instantiate = false; 1344 const bool instantiate = false;
1343 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); 1345 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle());
1344 } 1346 }
1345 1347
1346 // Build a string of the form '(A, [b: B, c: C]) => D' representing the 1348 // Build a string of the form '(A, [b: B, c: C]) => D' representing the
1347 // signature of the given function, where all generic types (e.g. '<T, R>' in 1349 // signature of the given function, where all generic types (e.g. '<T, R>' in
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 Error* malformed_error) const; 1660 Error* malformed_error) const;
1659 1661
1660 HEAP_OBJECT_IMPLEMENTATION(Function, Object); 1662 HEAP_OBJECT_IMPLEMENTATION(Function, Object);
1661 friend class Class; 1663 friend class Class;
1662 }; 1664 };
1663 1665
1664 1666
1665 class Field : public Object { 1667 class Field : public Object {
1666 public: 1668 public:
1667 RawString* name() const { return raw_ptr()->name_; } 1669 RawString* name() const { return raw_ptr()->name_; }
1670 RawString* UserVisibleName() const;
1671
1668 bool is_static() const { return raw_ptr()->is_static_; } 1672 bool is_static() const { return raw_ptr()->is_static_; }
1669 bool is_final() const { return raw_ptr()->is_final_; } 1673 bool is_final() const { return raw_ptr()->is_final_; }
1670 bool is_const() const { return raw_ptr()->is_const_; } 1674 bool is_const() const { return raw_ptr()->is_const_; }
1671 1675
1672 inline intptr_t Offset() const; 1676 inline intptr_t Offset() const;
1673 inline void SetOffset(intptr_t value) const; 1677 inline void SetOffset(intptr_t value) const;
1674 1678
1675 RawInstance* value() const; 1679 RawInstance* value() const;
1676 void set_value(const Instance& value) const; 1680 void set_value(const Instance& value) const;
1677 1681
(...skipping 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after
5448 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5452 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5449 return false; 5453 return false;
5450 } 5454 }
5451 } 5455 }
5452 return true; 5456 return true;
5453 } 5457 }
5454 5458
5455 } // namespace dart 5459 } // namespace dart
5456 5460
5457 #endif // VM_OBJECT_H_ 5461 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/dart_api_impl_test.cc ('k') | vm/object.cc » ('j') | vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698