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

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

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)
Patch Set: Review comments 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 | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/kernel_to_il.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) 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 const dart::String& DartString(const char* content) { 313 const dart::String& DartString(const char* content) {
314 return DartString(content, allocation_space_); 314 return DartString(content, allocation_space_);
315 } 315 }
316 const dart::String& DartString(const char* content, Heap::Space space); 316 const dart::String& DartString(const char* content, Heap::Space space);
317 317
318 dart::String& DartString(StringIndex index) { 318 dart::String& DartString(StringIndex index) {
319 return DartString(index, allocation_space_); 319 return DartString(index, allocation_space_);
320 } 320 }
321 dart::String& DartString(StringIndex string_index, Heap::Space space); 321 dart::String& DartString(StringIndex string_index, Heap::Space space);
322 322
323 dart::String& DartString(const uint8_t* utf8_array, intptr_t len) {
324 return DartString(utf8_array, len, allocation_space_);
325 }
326 dart::String& DartString(const uint8_t* utf8_array, 323 dart::String& DartString(const uint8_t* utf8_array,
327 intptr_t len, 324 intptr_t len,
328 Heap::Space space); 325 Heap::Space space);
329 326
330 const dart::String& DartSymbol(const char* content) const; 327 const dart::String& DartSymbol(const char* content) const;
331 dart::String& DartSymbol(StringIndex string_index) const; 328 dart::String& DartSymbol(StringIndex string_index) const;
332 dart::String& DartSymbol(const uint8_t* utf8_array, intptr_t len) const; 329 dart::String& DartSymbol(const uint8_t* utf8_array, intptr_t len) const;
333 330
334 const dart::String& DartClassName(NameIndex kernel_class); 331 const dart::String& DartClassName(NameIndex kernel_class);
335 332
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 FlowGraphBuilder* builder_; 922 FlowGraphBuilder* builder_;
926 CatchBlock* outer_; 923 CatchBlock* outer_;
927 LocalVariable* exception_var_; 924 LocalVariable* exception_var_;
928 LocalVariable* stack_trace_var_; 925 LocalVariable* stack_trace_var_;
929 intptr_t catch_try_index_; 926 intptr_t catch_try_index_;
930 }; 927 };
931 928
932 RawObject* EvaluateMetadata(const dart::Field& metadata_field); 929 RawObject* EvaluateMetadata(const dart::Field& metadata_field);
933 RawObject* BuildParameterDescriptor(const Function& function); 930 RawObject* BuildParameterDescriptor(const Function& function);
934 void CollectTokenPositionsFor(const Script& script); 931 void CollectTokenPositionsFor(const Script& script);
935 String& GetSourceFor(const Script& script);
936 Array& GetLineStartsFor(const Script& script);
937 932
938 } // namespace kernel 933 } // namespace kernel
939 } // namespace dart 934 } // namespace dart
940 935
941 #else // !defined(DART_PRECOMPILED_RUNTIME) 936 #else // !defined(DART_PRECOMPILED_RUNTIME)
942 937
943 #include "vm/kernel.h" 938 #include "vm/kernel.h"
944 #include "vm/object.h" 939 #include "vm/object.h"
945 940
946 namespace dart { 941 namespace dart {
947 namespace kernel { 942 namespace kernel {
948 943
949 RawObject* EvaluateMetadata(const dart::Field& metadata_field); 944 RawObject* EvaluateMetadata(const dart::Field& metadata_field);
950 RawObject* BuildParameterDescriptor(const Function& function); 945 RawObject* BuildParameterDescriptor(const Function& function);
951 946
952 } // namespace kernel 947 } // namespace kernel
953 } // namespace dart 948 } // namespace dart
954 949
955 #endif // !defined(DART_PRECOMPILED_RUNTIME) 950 #endif // !defined(DART_PRECOMPILED_RUNTIME)
956 #endif // RUNTIME_VM_KERNEL_TO_IL_H_ 951 #endif // RUNTIME_VM_KERNEL_TO_IL_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_reader.cc ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698