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

Unified Diff: runtime/vm/raw_object.cc

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/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 34642)
+++ runtime/vm/raw_object.cc (working copy)
@@ -137,7 +137,7 @@
case kPcDescriptorsCid: {
const RawPcDescriptors* raw_descriptors =
reinterpret_cast<const RawPcDescriptors*>(this);
- intptr_t num_descriptors = Smi::Value(raw_descriptors->ptr()->length_);
+ intptr_t num_descriptors = raw_descriptors->ptr()->length_;
instance_size = PcDescriptors::InstanceSize(num_descriptors);
break;
}
@@ -371,7 +371,7 @@
Code code;
code = fn.CurrentCode();
- if (!code.IsNull() && // The function may not have code.
+ if (fn.HasCode() && // The function may not have code.
!code.is_optimized() &&
(fn.CurrentCode() == fn.unoptimized_code()) &&
!code.HasBreakpoint() &&
@@ -495,19 +495,13 @@
intptr_t RawPcDescriptors::VisitPcDescriptorsPointers(
RawPcDescriptors* raw_obj, ObjectPointerVisitor* visitor) {
- RawPcDescriptors* obj = raw_obj->ptr();
- intptr_t length = Smi::Value(obj->length_);
- visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->length_));
- return PcDescriptors::InstanceSize(length);
+ return PcDescriptors::InstanceSize(raw_obj->ptr()->length_);
}
intptr_t RawStackmap::VisitStackmapPointers(RawStackmap* raw_obj,
ObjectPointerVisitor* visitor) {
- RawStackmap* obj = raw_obj->ptr();
- intptr_t length = obj->length_;
- visitor->VisitPointer(reinterpret_cast<RawObject**>(&obj->code_));
- return Stackmap::InstanceSize(length);
+ return Stackmap::InstanceSize(raw_obj->ptr()->length_);
}
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698