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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2979163002: Allow setting breakpoints in function literal field initializers under --dfe. (Closed)
Patch Set: Address comments on patch set 2 Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 4ada7539e9aa809197f4222a06d763f7ebde1227..dc378c84fe503d14cc6dc2aa718234ca1db8575a 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -76,6 +76,20 @@ TranslationHelper::TranslationHelper(Thread* thread)
string_data_(TypedData::Handle(Z)),
canonical_names_(TypedData::Handle(Z)) {}
+TranslationHelper::TranslationHelper(Thread* thread,
+ dart::RawTypedData* string_offsets,
+ dart::RawTypedData* string_data,
+ dart::RawTypedData* canonical_names)
+ : thread_(thread),
+ zone_(thread->zone()),
+ isolate_(thread->isolate()),
+ allocation_space_(Heap::kNew),
+ string_offsets_(TypedData::Handle(Z, string_offsets)),
+ string_data_(TypedData::Handle(Z, string_data)),
+ canonical_names_(TypedData::Handle(Z, canonical_names)) {
+ ASSERT(thread->IsMutatorThread());
+}
+
void TranslationHelper::SetStringOffsets(const TypedData& string_offsets) {
ASSERT(string_offsets_.IsNull());
string_offsets_ = string_offsets.raw();
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698