| OLD | NEW |
| 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 4683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4694 break; | 4694 break; |
| 4695 case RawFunction::kImplicitSetter: | 4695 case RawFunction::kImplicitSetter: |
| 4696 kind_str = " setter"; | 4696 kind_str = " setter"; |
| 4697 break; | 4697 break; |
| 4698 case RawFunction::kConstImplicitGetter: | 4698 case RawFunction::kConstImplicitGetter: |
| 4699 kind_str = " const-getter"; | 4699 kind_str = " const-getter"; |
| 4700 break; | 4700 break; |
| 4701 case RawFunction::kMethodExtractor: | 4701 case RawFunction::kMethodExtractor: |
| 4702 kind_str = " method-extractor"; | 4702 kind_str = " method-extractor"; |
| 4703 break; | 4703 break; |
| 4704 case RawFunction::kNoSuchMethodDispatcher: | |
| 4705 kind_str = " no-such-method-dispatcher"; | |
| 4706 break; | |
| 4707 default: | 4704 default: |
| 4708 UNREACHABLE(); | 4705 UNREACHABLE(); |
| 4709 } | 4706 } |
| 4710 const char* kFormat = "Function '%s':%s%s%s%s."; | 4707 const char* kFormat = "Function '%s':%s%s%s%s."; |
| 4711 const char* function_name = String::Handle(name()).ToCString(); | 4708 const char* function_name = String::Handle(name()).ToCString(); |
| 4712 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, | 4709 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, |
| 4713 static_str, abstract_str, kind_str, const_str) + 1; | 4710 static_str, abstract_str, kind_str, const_str) + 1; |
| 4714 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 4711 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
| 4715 OS::SNPrint(chars, len, kFormat, function_name, | 4712 OS::SNPrint(chars, len, kFormat, function_name, |
| 4716 static_str, abstract_str, kind_str, const_str); | 4713 static_str, abstract_str, kind_str, const_str); |
| (...skipping 8914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13631 space); | 13628 space); |
| 13632 return reinterpret_cast<RawWeakProperty*>(raw); | 13629 return reinterpret_cast<RawWeakProperty*>(raw); |
| 13633 } | 13630 } |
| 13634 | 13631 |
| 13635 | 13632 |
| 13636 const char* WeakProperty::ToCString() const { | 13633 const char* WeakProperty::ToCString() const { |
| 13637 return "_WeakProperty"; | 13634 return "_WeakProperty"; |
| 13638 } | 13635 } |
| 13639 | 13636 |
| 13640 } // namespace dart | 13637 } // namespace dart |
| OLD | NEW |