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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 DECLARE_FLAG(charp, coverage_dir); | 68 DECLARE_FLAG(charp, coverage_dir); |
69 DECLARE_FLAG(bool, load_deferred_eagerly); | 69 DECLARE_FLAG(bool, load_deferred_eagerly); |
70 DECLARE_FLAG(bool, show_invisible_frames); | 70 DECLARE_FLAG(bool, show_invisible_frames); |
71 DECLARE_FLAG(bool, trace_compiler); | 71 DECLARE_FLAG(bool, trace_compiler); |
72 DECLARE_FLAG(bool, trace_deoptimization); | 72 DECLARE_FLAG(bool, trace_deoptimization); |
73 DECLARE_FLAG(bool, trace_deoptimization_verbose); | 73 DECLARE_FLAG(bool, trace_deoptimization_verbose); |
74 DECLARE_FLAG(bool, write_protect_code); | 74 DECLARE_FLAG(bool, write_protect_code); |
75 | 75 |
76 | 76 |
77 static const char* kGetterPrefix = "get:"; | 77 static const char* const kGetterPrefix = "get:"; |
78 static const intptr_t kGetterPrefixLength = strlen(kGetterPrefix); | 78 static const intptr_t kGetterPrefixLength = strlen(kGetterPrefix); |
79 static const char* kSetterPrefix = "set:"; | 79 static const char* const kSetterPrefix = "set:"; |
80 static const intptr_t kSetterPrefixLength = strlen(kSetterPrefix); | 80 static const intptr_t kSetterPrefixLength = strlen(kSetterPrefix); |
81 | 81 |
82 // A cache of VM heap allocated preinitialized empty ic data entry arrays. | 82 // A cache of VM heap allocated preinitialized empty ic data entry arrays. |
83 RawArray* ICData::cached_icdata_arrays_[kCachedICDataArrayCount]; | 83 RawArray* ICData::cached_icdata_arrays_[kCachedICDataArrayCount]; |
84 | 84 |
85 cpp_vtable Object::handle_vtable_ = 0; | 85 cpp_vtable Object::handle_vtable_ = 0; |
86 cpp_vtable Object::builtin_vtables_[kNumPredefinedCids] = { 0 }; | 86 cpp_vtable Object::builtin_vtables_[kNumPredefinedCids] = { 0 }; |
87 cpp_vtable Smi::handle_vtable_ = 0; | 87 cpp_vtable Smi::handle_vtable_ = 0; |
88 | 88 |
89 // These are initialized to a value that will force a illegal memory access if | 89 // These are initialized to a value that will force a illegal memory access if |
(...skipping 21828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21918 return tag_label.ToCString(); | 21918 return tag_label.ToCString(); |
21919 } | 21919 } |
21920 | 21920 |
21921 | 21921 |
21922 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21922 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21923 Instance::PrintJSONImpl(stream, ref); | 21923 Instance::PrintJSONImpl(stream, ref); |
21924 } | 21924 } |
21925 | 21925 |
21926 | 21926 |
21927 } // namespace dart | 21927 } // namespace dart |
OLD | NEW |