| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 RawClass* Object::unhandled_exception_class_ = | 155 RawClass* Object::unhandled_exception_class_ = |
| 156 reinterpret_cast<RawClass*>(RAW_NULL); | 156 reinterpret_cast<RawClass*>(RAW_NULL); |
| 157 RawClass* Object::unwind_error_class_ = reinterpret_cast<RawClass*>(RAW_NULL); | 157 RawClass* Object::unwind_error_class_ = reinterpret_cast<RawClass*>(RAW_NULL); |
| 158 | 158 |
| 159 | 159 |
| 160 const double MegamorphicCache::kLoadFactor = 0.75; | 160 const double MegamorphicCache::kLoadFactor = 0.75; |
| 161 | 161 |
| 162 | 162 |
| 163 // The following functions are marked as invisible, meaning they will be hidden | 163 // The following functions are marked as invisible, meaning they will be hidden |
| 164 // in the stack trace and will be hidden from reflective access. | 164 // in the stack trace and will be hidden from reflective access. |
| 165 // (Library, class name, method name) | |
| 166 // Additionally, private functions in dart:* that are native or constructors are | 165 // Additionally, private functions in dart:* that are native or constructors are |
| 167 // marked as invisible by the parser. | 166 // marked as invisible by the parser. |
| 168 #define INVISIBLE_CLASS_FUNCTIONS(V) \ | 167 #define INVISIBLE_CLASS_FUNCTIONS(V) \ |
| 169 V(CoreLibrary, int, _throwFormatException) \ | 168 V(AsyncLibrary, _AsyncRun, _scheduleImmediate) \ |
| 170 V(CoreLibrary, int, _parse) \ | 169 V(CoreLibrary, StringBuffer, _addPart) \ |
| 171 V(CoreLibrary, _Bigint, _absAdd) \ | 170 V(CoreLibrary, _Bigint, _absAdd) \ |
| 172 V(CoreLibrary, _Bigint, _absSub) \ | 171 V(CoreLibrary, _Bigint, _absSub) \ |
| 172 V(CoreLibrary, _Bigint, _estQuotientDigit) \ |
| 173 V(CoreLibrary, _Bigint, _mulAdd) \ | 173 V(CoreLibrary, _Bigint, _mulAdd) \ |
| 174 V(CoreLibrary, _Bigint, _sqrAdd) \ | 174 V(CoreLibrary, _Bigint, _sqrAdd) \ |
| 175 V(CoreLibrary, _Bigint, _estQuotientDigit) \ | 175 V(CoreLibrary, _Double, _addFromInteger) \ |
| 176 V(CoreLibrary, _Double, _moduloFromInteger) \ |
| 177 V(CoreLibrary, _Double, _mulFromInteger) \ |
| 178 V(CoreLibrary, _Double, _remainderFromInteger) \ |
| 179 V(CoreLibrary, _Double, _subFromInteger) \ |
| 180 V(CoreLibrary, _Double, _truncDivFromInteger) \ |
| 176 V(CoreLibrary, _Montgomery, _mulMod) \ | 181 V(CoreLibrary, _Montgomery, _mulMod) \ |
| 182 V(CoreLibrary, int, _parse) \ |
| 183 V(CoreLibrary, int, _throwFormatException) \ |
| 184 |
| 177 | 185 |
| 178 #define INVISIBLE_LIBRARY_FUNCTIONS(V) \ | 186 #define INVISIBLE_LIBRARY_FUNCTIONS(V) \ |
| 179 V(TypedDataLibrary, _toInt8) \ | 187 V(AsyncLibrary, _asyncRunCallback) \ |
| 188 V(AsyncLibrary, _rootHandleUncaughtError) \ |
| 189 V(AsyncLibrary, _scheduleAsyncCallback) \ |
| 190 V(AsyncLibrary, _schedulePriorityAsyncCallback) \ |
| 191 V(AsyncLibrary, _setScheduleImmediateClosure) \ |
| 192 V(AsyncLibrary, _setTimerFactoryClosure) \ |
| 193 V(IsolateLibrary, _isolateScheduleImmediate) \ |
| 194 V(IsolateLibrary, _startIsolate) \ |
| 195 V(IsolateLibrary, _startMainIsolate) \ |
| 196 V(MirrorsLibrary, _n) \ |
| 197 V(MirrorsLibrary, _s) \ |
| 180 V(TypedDataLibrary, _toInt16) \ | 198 V(TypedDataLibrary, _toInt16) \ |
| 181 V(TypedDataLibrary, _toInt32) \ | 199 V(TypedDataLibrary, _toInt32) \ |
| 182 V(TypedDataLibrary, _toInt64) \ | 200 V(TypedDataLibrary, _toInt64) \ |
| 183 V(TypedDataLibrary, _toUint8) \ | 201 V(TypedDataLibrary, _toInt8) \ |
| 184 V(TypedDataLibrary, _toUint16) \ | 202 V(TypedDataLibrary, _toUint16) \ |
| 185 V(TypedDataLibrary, _toUint32) \ | 203 V(TypedDataLibrary, _toUint32) \ |
| 186 V(TypedDataLibrary, _toUint64) \ | 204 V(TypedDataLibrary, _toUint64) \ |
| 205 V(TypedDataLibrary, _toUint8) \ |
| 206 |
| 187 | 207 |
| 188 static void MarkClassFunctionAsInvisible(const Library& lib, | 208 static void MarkClassFunctionAsInvisible(const Library& lib, |
| 189 const char* class_name, | 209 const char* class_name, |
| 190 const char* function_name) { | 210 const char* function_name) { |
| 191 ASSERT(!lib.IsNull()); | 211 ASSERT(!lib.IsNull()); |
| 192 const Class& cls = Class::Handle( | 212 const Class& cls = Class::Handle( |
| 193 lib.LookupClassAllowPrivate(String::Handle(String::New(class_name)))); | 213 lib.LookupClassAllowPrivate(String::Handle(String::New(class_name)))); |
| 194 ASSERT(!cls.IsNull()); | 214 ASSERT(!cls.IsNull()); |
| 195 const Function& function = | 215 const Function& function = |
| 196 Function::Handle( | 216 Function::Handle( |
| (...skipping 20259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20456 return tag_label.ToCString(); | 20476 return tag_label.ToCString(); |
| 20457 } | 20477 } |
| 20458 | 20478 |
| 20459 | 20479 |
| 20460 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20480 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20461 Instance::PrintJSONImpl(stream, ref); | 20481 Instance::PrintJSONImpl(stream, ref); |
| 20462 } | 20482 } |
| 20463 | 20483 |
| 20464 | 20484 |
| 20465 } // namespace dart | 20485 } // namespace dart |
| OLD | NEW |