OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #ifndef RUNTIME_VM_KERNEL_TO_IL_H_ | 5 #ifndef RUNTIME_VM_KERNEL_TO_IL_H_ |
6 #define RUNTIME_VM_KERNEL_TO_IL_H_ | 6 #define RUNTIME_VM_KERNEL_TO_IL_H_ |
7 | 7 |
8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
9 | 9 |
10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 const dart::String& DartString(const char* content) { | 329 const dart::String& DartString(const char* content) { |
330 return DartString(content, allocation_space_); | 330 return DartString(content, allocation_space_); |
331 } | 331 } |
332 const dart::String& DartString(const char* content, Heap::Space space); | 332 const dart::String& DartString(const char* content, Heap::Space space); |
333 | 333 |
334 dart::String& DartString(StringIndex index) { | 334 dart::String& DartString(StringIndex index) { |
335 return DartString(index, allocation_space_); | 335 return DartString(index, allocation_space_); |
336 } | 336 } |
337 dart::String& DartString(StringIndex string_index, Heap::Space space); | 337 dart::String& DartString(StringIndex string_index, Heap::Space space); |
338 | 338 |
339 dart::String& DartString(const uint8_t* utf8_array, intptr_t len) { | |
340 return DartString(utf8_array, len, allocation_space_); | |
341 } | |
342 dart::String& DartString(const uint8_t* utf8_array, | 339 dart::String& DartString(const uint8_t* utf8_array, |
343 intptr_t len, | 340 intptr_t len, |
344 Heap::Space space); | 341 Heap::Space space); |
345 | 342 |
346 const dart::String& DartSymbol(const char* content) const; | 343 const dart::String& DartSymbol(const char* content) const; |
347 dart::String& DartSymbol(StringIndex string_index) const; | 344 dart::String& DartSymbol(StringIndex string_index) const; |
348 dart::String& DartSymbol(const uint8_t* utf8_array, intptr_t len) const; | 345 dart::String& DartSymbol(const uint8_t* utf8_array, intptr_t len) const; |
349 | 346 |
350 const dart::String& DartClassName(NameIndex kernel_class); | 347 const dart::String& DartClassName(NameIndex kernel_class); |
351 | 348 |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 FlowGraphBuilder* builder_; | 938 FlowGraphBuilder* builder_; |
942 CatchBlock* outer_; | 939 CatchBlock* outer_; |
943 LocalVariable* exception_var_; | 940 LocalVariable* exception_var_; |
944 LocalVariable* stack_trace_var_; | 941 LocalVariable* stack_trace_var_; |
945 intptr_t catch_try_index_; | 942 intptr_t catch_try_index_; |
946 }; | 943 }; |
947 | 944 |
948 RawObject* EvaluateMetadata(const dart::Field& metadata_field); | 945 RawObject* EvaluateMetadata(const dart::Field& metadata_field); |
949 RawObject* BuildParameterDescriptor(const Function& function); | 946 RawObject* BuildParameterDescriptor(const Function& function); |
950 void CollectTokenPositionsFor(const Script& script); | 947 void CollectTokenPositionsFor(const Script& script); |
951 String& GetSourceFor(const Script& script); | |
952 Array& GetLineStartsFor(const Script& script); | |
953 | 948 |
954 } // namespace kernel | 949 } // namespace kernel |
955 } // namespace dart | 950 } // namespace dart |
956 | 951 |
957 #else // !defined(DART_PRECOMPILED_RUNTIME) | 952 #else // !defined(DART_PRECOMPILED_RUNTIME) |
958 | 953 |
959 #include "vm/kernel.h" | 954 #include "vm/kernel.h" |
960 #include "vm/object.h" | 955 #include "vm/object.h" |
961 | 956 |
962 namespace dart { | 957 namespace dart { |
963 namespace kernel { | 958 namespace kernel { |
964 | 959 |
965 RawObject* EvaluateMetadata(const dart::Field& metadata_field); | 960 RawObject* EvaluateMetadata(const dart::Field& metadata_field); |
966 RawObject* BuildParameterDescriptor(const Function& function); | 961 RawObject* BuildParameterDescriptor(const Function& function); |
967 | 962 |
968 } // namespace kernel | 963 } // namespace kernel |
969 } // namespace dart | 964 } // namespace dart |
970 | 965 |
971 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 966 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
972 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ | 967 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ |
OLD | NEW |