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/symbols.h" | 5 #include "vm/symbols.h" |
6 | 6 |
7 #include "vm/handles.h" | 7 #include "vm/handles.h" |
8 #include "vm/handles_impl.h" | |
9 #include "vm/hash_table.h" | 8 #include "vm/hash_table.h" |
10 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
11 #include "vm/object.h" | 10 #include "vm/object.h" |
12 #include "vm/object_store.h" | 11 #include "vm/object_store.h" |
13 #include "vm/raw_object.h" | 12 #include "vm/raw_object.h" |
14 #include "vm/reusable_handles.h" | 13 #include "vm/reusable_handles.h" |
15 #include "vm/snapshot_ids.h" | 14 #include "vm/snapshot_ids.h" |
16 #include "vm/unicode.h" | 15 #include "vm/unicode.h" |
17 #include "vm/visitor.h" | 16 #include "vm/visitor.h" |
18 | 17 |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 RawObject* Symbols::GetPredefinedSymbol(intptr_t object_id) { | 737 RawObject* Symbols::GetPredefinedSymbol(intptr_t object_id) { |
739 ASSERT(IsPredefinedSymbolId(object_id)); | 738 ASSERT(IsPredefinedSymbolId(object_id)); |
740 intptr_t i = (object_id - kMaxPredefinedObjectIds); | 739 intptr_t i = (object_id - kMaxPredefinedObjectIds); |
741 if ((i > kIllegal) && (i < Symbols::kMaxPredefinedId)) { | 740 if ((i > kIllegal) && (i < Symbols::kMaxPredefinedId)) { |
742 return symbol_handles_[i]->raw(); | 741 return symbol_handles_[i]->raw(); |
743 } | 742 } |
744 return Object::null(); | 743 return Object::null(); |
745 } | 744 } |
746 | 745 |
747 } // namespace dart | 746 } // namespace dart |
OLD | NEW |