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

Unified Diff: runtime/vm/object.cc

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/native_symbol_win.cc ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 6a691df0330e2a85f4138ba913d3fef95c9004f3..ee9c32561cf7bd3859381976ec1227266c903eec 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7311,7 +7311,7 @@ RawObject* Library::GetMetadata(const Object& obj) const {
Field& field = Field::Handle(GetMetadataField(metaname));
if (field.IsNull()) {
// There is no metadata for this object.
- return Object::empty_array().raw();;
+ return Object::empty_array().raw();
}
Object& metadata = Object::Handle();
metadata = field.value();
@@ -9597,6 +9597,9 @@ RawCode* Code::LookupCode(uword pc) {
NoGCScope no_gc;
FindRawCodeVisitor visitor(pc);
RawInstructions* instr;
+ if (isolate->heap() == NULL) {
+ return Code::null();
+ }
instr = isolate->heap()->FindObjectInCodeSpace(&visitor);
if (instr != Instructions::null()) {
return instr->ptr()->code_;
« no previous file with comments | « runtime/vm/native_symbol_win.cc ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698