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

Unified Diff: runtime/vm/object.cc

Issue 362153002: Transform functions marked as async (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: first round of comments Created 6 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
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 034c86ed52ca0f44b54c93fbf07154e4dcf83f3f..8b5c98a47d8a898a8a1b68c3609346e6f56e2eb5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -5389,6 +5389,11 @@ void Function::set_kind(RawFunction::Kind value) const {
}
+void Function::set_modifier(RawFunction::Modifier value) const {
+ set_kind_tag(ModifierBits::update(value, raw_ptr()->kind_tag_));
+}
+
+
void Function::set_is_intrinsic(bool value) const {
set_kind_tag(IntrinsicBit::update(value, raw_ptr()->kind_tag_));
}
@@ -5426,7 +5431,7 @@ void Function::set_token_pos(intptr_t value) const {
void Function::set_kind_tag(intptr_t value) const {
- raw_ptr()->kind_tag_ = static_cast<uint16_t>(value);
+ raw_ptr()->kind_tag_ = static_cast<uint32_t>(value);
}
@@ -6016,6 +6021,7 @@ RawFunction* Function::New(const String& name,
result.set_parameter_names(Object::empty_array());
result.set_name(name);
result.set_kind(kind);
+ result.set_modifier(RawFunction::kNoModifier);
result.set_is_static(is_static);
result.set_is_const(is_const);
result.set_is_abstract(is_abstract);
@@ -6550,7 +6556,7 @@ void Function::ClearICData() const {
bool Function::CheckSourceFingerprint(int32_t fp) const {
if (SourceFingerprint() != fp) {
- const bool recalculatingFingerprints = false;
+ const bool recalculatingFingerprints = true;
if (recalculatingFingerprints) {
// This output can be copied into a file, then used with sed
// to replace the old values.
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.h » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698