| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 | 158 |
| 159 // The following functions are marked as invisible, meaning they will be hidden | 159 // The following functions are marked as invisible, meaning they will be hidden |
| 160 // in the stack trace and will be hidden from reflective access. | 160 // in the stack trace and will be hidden from reflective access. |
| 161 // (Library, class name, method name) | 161 // (Library, class name, method name) |
| 162 // Additionally, private functions in dart:* that are native or constructors are | 162 // Additionally, private functions in dart:* that are native or constructors are |
| 163 // marked as invisible by the parser. | 163 // marked as invisible by the parser. |
| 164 #define INVISIBLE_LIST(V) \ | 164 #define INVISIBLE_LIST(V) \ |
| 165 V(CoreLibrary, int, _throwFormatException) \ | 165 V(CoreLibrary, int, _throwFormatException) \ |
| 166 V(CoreLibrary, int, _parse) \ | 166 V(CoreLibrary, int, _parse) \ |
| 167 V(CoreLibrary, _Bigint, _mulAdd) \ |
| 167 | 168 |
| 168 static void MarkFunctionAsInvisible(const Library& lib, | 169 static void MarkFunctionAsInvisible(const Library& lib, |
| 169 const char* class_name, | 170 const char* class_name, |
| 170 const char* function_name) { | 171 const char* function_name) { |
| 171 ASSERT(!lib.IsNull()); | 172 ASSERT(!lib.IsNull()); |
| 172 const Class& cls = Class::Handle( | 173 const Class& cls = Class::Handle( |
| 173 lib.LookupClassAllowPrivate(String::Handle(String::New(class_name)))); | 174 lib.LookupClassAllowPrivate(String::Handle(String::New(class_name)))); |
| 174 ASSERT(!cls.IsNull()); | 175 ASSERT(!cls.IsNull()); |
| 175 const Function& function = | 176 const Function& function = |
| 176 Function::Handle( | 177 Function::Handle( |
| (...skipping 20244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20421 return tag_label.ToCString(); | 20422 return tag_label.ToCString(); |
| 20422 } | 20423 } |
| 20423 | 20424 |
| 20424 | 20425 |
| 20425 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20426 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20426 Instance::PrintJSONImpl(stream, ref); | 20427 Instance::PrintJSONImpl(stream, ref); |
| 20427 } | 20428 } |
| 20428 | 20429 |
| 20429 | 20430 |
| 20430 } // namespace dart | 20431 } // namespace dart |
| OLD | NEW |