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

Unified Diff: runtime/vm/disassembler_ia32.cc

Issue 11826024: Clean up uses of X::CheckedHandle where X::Cast or X::Handle is sufficient. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: updated with corrent handling of null Created 7 years, 11 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 | « no previous file | runtime/vm/disassembler_x64.cc » ('j') | runtime/vm/disassembler_x64.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/disassembler_ia32.cc
===================================================================
--- runtime/vm/disassembler_ia32.cc (revision 16802)
+++ runtime/vm/disassembler_ia32.cc (working copy)
@@ -410,7 +410,7 @@
return obj.ToCString();
}
- const Class& clazz = Class::CheckedHandle(obj.clazz());
+ const Class& clazz = Class::Handle(obj.clazz());
const char* full_class_name = clazz.ToCString();
const char* format = "instance of %s";
intptr_t len = OS::SNPrint(NULL, 0, format, full_class_name) + 1;
@@ -431,7 +431,8 @@
Isolate::Current()->heap()->Contains(addr - kHeapObjectTag)) {
Object& obj = Object::Handle(reinterpret_cast<RawObject*>(addr));
if (obj.IsArray()) {
- const Array& arr = Array::CheckedHandle(obj.raw());
+ Array& arr = Array::Handle();
+ arr ^= obj.raw();
Ivan Posva 2013/01/11 23:13:33 const Array& arr = Array::Cast(obj);
Florian Schneider 2013/01/14 09:43:57 Done.
intptr_t len = arr.Length();
if (len > 5) len = 5; // Print a max of 5 elements.
Print(" Array[");
@@ -1688,8 +1689,9 @@
const intptr_t offset = pc - start;
while (comment_finger < comments.Length() &&
comments.PCOffsetAt(comment_finger) <= offset) {
- formatter->Print(" ;; %s\n",
- comments.CommentAt(comment_finger).ToCString());
+ formatter->Print(
+ " ;; %s\n",
+ String::Handle(comments.CommentAt(comment_finger)).ToCString());
comment_finger++;
}
int instruction_length = DecodeInstruction(hex_buffer,
« no previous file with comments | « no previous file | runtime/vm/disassembler_x64.cc » ('j') | runtime/vm/disassembler_x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698