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

Unified Diff: runtime/vm/object.h

Issue 203523011: Introduce a lazy-compile stub for functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased Created 6 years, 9 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/megamorphic_cache_table.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 34642)
+++ runtime/vm/object.h (working copy)
@@ -1514,8 +1514,9 @@
void set_parameter_names(const Array& value) const;
// Sets function's code and code's function.
- void SetCode(const Code& value) const;
- void ClearCode() const;
+ void AttachCode(const Code& value) const;
+ void set_code(const Code& value) const;
+ void ClearCode() const;
// Disables optimized code and switches to unoptimized code.
void SwitchToUnoptimizedCode() const;
@@ -1530,7 +1531,7 @@
static intptr_t unoptimized_code_offset() {
return OFFSET_OF(RawFunction, unoptimized_code_);
}
- inline bool HasCode() const;
+ bool HasCode() const;
// Returns true if there is at least one debugger breakpoint
// set in this function.
@@ -2970,9 +2971,6 @@
return GetBit(index);
}
- RawCode* Code() const { return raw_ptr()->code_; }
- void SetCode(const dart::Code& code) const;
-
intptr_t Length() const { return raw_ptr()->length_; }
uword PC() const { return raw_ptr()->pc_; }
@@ -6683,11 +6681,6 @@
}
-bool Function::HasCode() const {
- return raw_ptr()->code_ != Code::null();
-}
-
-
intptr_t Field::Offset() const {
ASSERT(!is_static()); // Offset is valid only for instance fields.
intptr_t value = Smi::Value(reinterpret_cast<RawSmi*>(raw_ptr()->value_));
« no previous file with comments | « runtime/vm/megamorphic_cache_table.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698