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; |
4704 default: | 4707 default: |
4705 UNREACHABLE(); | 4708 UNREACHABLE(); |
4706 } | 4709 } |
4707 const char* kFormat = "Function '%s':%s%s%s%s."; | 4710 const char* kFormat = "Function '%s':%s%s%s%s."; |
4708 const char* function_name = String::Handle(name()).ToCString(); | 4711 const char* function_name = String::Handle(name()).ToCString(); |
4709 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, | 4712 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, |
4710 static_str, abstract_str, kind_str, const_str) + 1; | 4713 static_str, abstract_str, kind_str, const_str) + 1; |
4711 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 4714 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
4712 OS::SNPrint(chars, len, kFormat, function_name, | 4715 OS::SNPrint(chars, len, kFormat, function_name, |
4713 static_str, abstract_str, kind_str, const_str); | 4716 static_str, abstract_str, kind_str, const_str); |
(...skipping 8909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13623 space); | 13626 space); |
13624 return reinterpret_cast<RawWeakProperty*>(raw); | 13627 return reinterpret_cast<RawWeakProperty*>(raw); |
13625 } | 13628 } |
13626 | 13629 |
13627 | 13630 |
13628 const char* WeakProperty::ToCString() const { | 13631 const char* WeakProperty::ToCString() const { |
13629 return "_WeakProperty"; | 13632 return "_WeakProperty"; |
13630 } | 13633 } |
13631 | 13634 |
13632 } // namespace dart | 13635 } // namespace dart |
OLD | NEW |