| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_BINARY_FLOWGRAPH_H_ | 5 #ifndef RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| 6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ | 6 #define RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| 7 | 7 |
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 RawObject* BuildParameterDescriptor(intptr_t kernel_offset); | 357 RawObject* BuildParameterDescriptor(intptr_t kernel_offset); |
| 358 RawObject* EvaluateMetadata(intptr_t kernel_offset); | 358 RawObject* EvaluateMetadata(intptr_t kernel_offset); |
| 359 void CollectTokenPositionsFor( | 359 void CollectTokenPositionsFor( |
| 360 intptr_t script_index, | 360 intptr_t script_index, |
| 361 intptr_t initial_script_index, | 361 intptr_t initial_script_index, |
| 362 GrowableArray<intptr_t>* record_token_positions_in, | 362 GrowableArray<intptr_t>* record_token_positions_in, |
| 363 GrowableArray<intptr_t>* record_yield_positions_in); | 363 GrowableArray<intptr_t>* record_yield_positions_in); |
| 364 intptr_t SourceTableSize(); | 364 intptr_t SourceTableSize(); |
| 365 String& SourceTableUriFor(intptr_t index); | 365 String& SourceTableUriFor(intptr_t index); |
| 366 String& GetSourceFor(intptr_t index); | 366 String& GetSourceFor(intptr_t index); |
| 367 Array& GetLineStartsFor(intptr_t index); | 367 TypedData& GetLineStartsFor(intptr_t index); |
| 368 | 368 |
| 369 private: | 369 private: |
| 370 void DiscoverEnclosingElements(Zone* zone, | 370 void DiscoverEnclosingElements(Zone* zone, |
| 371 const Function& function, | 371 const Function& function, |
| 372 Function* outermost_function); | 372 Function* outermost_function); |
| 373 | 373 |
| 374 void ReadUntilFunctionNode(); | 374 void ReadUntilFunctionNode(); |
| 375 StringIndex GetNameFromVariableDeclaration(intptr_t kernel_offset, | 375 StringIndex GetNameFromVariableDeclaration(intptr_t kernel_offset, |
| 376 const Function& function); | 376 const Function& function); |
| 377 | 377 |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1562 const uint8_t* saved_raw_buffer_; | 1562 const uint8_t* saved_raw_buffer_; |
| 1563 const TypedData* saved_typed_data_; | 1563 const TypedData* saved_typed_data_; |
| 1564 intptr_t saved_offset_; | 1564 intptr_t saved_offset_; |
| 1565 }; | 1565 }; |
| 1566 | 1566 |
| 1567 } // namespace kernel | 1567 } // namespace kernel |
| 1568 } // namespace dart | 1568 } // namespace dart |
| 1569 | 1569 |
| 1570 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 1570 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 1571 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ | 1571 #endif // RUNTIME_VM_KERNEL_BINARY_FLOWGRAPH_H_ |
| OLD | NEW |