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/become.h" | 10 #include "vm/become.h" |
(...skipping 9090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9101 void Script::set_kernel_string_offsets(const TypedData& offsets) const { | 9101 void Script::set_kernel_string_offsets(const TypedData& offsets) const { |
9102 StorePointer(&raw_ptr()->kernel_string_offsets_, offsets.raw()); | 9102 StorePointer(&raw_ptr()->kernel_string_offsets_, offsets.raw()); |
9103 } | 9103 } |
9104 | 9104 |
9105 | 9105 |
9106 void Script::set_kernel_string_data(const TypedData& data) const { | 9106 void Script::set_kernel_string_data(const TypedData& data) const { |
9107 StorePointer(&raw_ptr()->kernel_string_data_, data.raw()); | 9107 StorePointer(&raw_ptr()->kernel_string_data_, data.raw()); |
9108 } | 9108 } |
9109 | 9109 |
9110 | 9110 |
| 9111 void Script::set_kernel_canonical_names(const TypedData& names) const { |
| 9112 StorePointer(&raw_ptr()->kernel_canonical_names_, names.raw()); |
| 9113 } |
| 9114 |
| 9115 |
9111 RawGrowableObjectArray* Script::GenerateLineNumberArray() const { | 9116 RawGrowableObjectArray* Script::GenerateLineNumberArray() const { |
9112 Zone* zone = Thread::Current()->zone(); | 9117 Zone* zone = Thread::Current()->zone(); |
9113 const GrowableObjectArray& info = | 9118 const GrowableObjectArray& info = |
9114 GrowableObjectArray::Handle(zone, GrowableObjectArray::New()); | 9119 GrowableObjectArray::Handle(zone, GrowableObjectArray::New()); |
9115 const String& source = String::Handle(zone, Source()); | 9120 const String& source = String::Handle(zone, Source()); |
9116 const String& key = Symbols::Empty(); | 9121 const String& key = Symbols::Empty(); |
9117 const Object& line_separator = Object::Handle(zone); | 9122 const Object& line_separator = Object::Handle(zone); |
9118 Smi& value = Smi::Handle(zone); | 9123 Smi& value = Smi::Handle(zone); |
9119 | 9124 |
9120 if (kind() == RawScript::kKernelTag) { | 9125 if (kind() == RawScript::kKernelTag) { |
(...skipping 14199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23320 return UserTag::null(); | 23325 return UserTag::null(); |
23321 } | 23326 } |
23322 | 23327 |
23323 | 23328 |
23324 const char* UserTag::ToCString() const { | 23329 const char* UserTag::ToCString() const { |
23325 const String& tag_label = String::Handle(label()); | 23330 const String& tag_label = String::Handle(label()); |
23326 return tag_label.ToCString(); | 23331 return tag_label.ToCString(); |
23327 } | 23332 } |
23328 | 23333 |
23329 } // namespace dart | 23334 } // namespace dart |
OLD | NEW |