Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Side by Side Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2993253002: Make line-starts 32-bits TypedData instead of Array of smis.
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/kernel_binary_flowgraph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698