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

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

Issue 1170503004: Initial Timeline Events (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 6555 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 raw_ptr()->instructions_).code()).is_optimized(); 6566 raw_ptr()->instructions_).code()).is_optimized();
6567 } 6567 }
6568 6568
6569 6569
6570 RawString* Function::PrettyName() const { 6570 RawString* Function::PrettyName() const {
6571 const String& str = String::Handle(name()); 6571 const String& str = String::Handle(name());
6572 return String::IdentifierPrettyName(str); 6572 return String::IdentifierPrettyName(str);
6573 } 6573 }
6574 6574
6575 6575
6576 const char* Function::PrettyNameCString() const {
6577 const String& str = String::Handle(PrettyName());
6578 return str.ToCString();
6579 }
6580
6581
6576 RawString* Function::UserVisibleName() const { 6582 RawString* Function::UserVisibleName() const {
6577 return PrettyName(); 6583 return PrettyName();
6578 } 6584 }
6579 6585
6580 6586
6581 RawString* Function::QualifiedPrettyName() const { 6587 RawString* Function::QualifiedPrettyName() const {
6582 String& tmp = String::Handle(); 6588 String& tmp = String::Handle();
6583 const Class& cls = Class::Handle(Owner()); 6589 const Class& cls = Class::Handle(Owner());
6584 6590
6585 if (IsClosureFunction()) { 6591 if (IsClosureFunction()) {
(...skipping 14224 matching lines...) Expand 10 before | Expand all | Expand 10 after
20810 return tag_label.ToCString(); 20816 return tag_label.ToCString();
20811 } 20817 }
20812 20818
20813 20819
20814 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20820 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20815 Instance::PrintJSONImpl(stream, ref); 20821 Instance::PrintJSONImpl(stream, ref);
20816 } 20822 }
20817 20823
20818 20824
20819 } // namespace dart 20825 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698