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

Unified Diff: vm/raw_object.cc

Issue 10052027: Add fast paths for Smi values in the dart embedding api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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
« vm/handles.h ('K') | « vm/pages.cc ('k') | vm/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.cc
===================================================================
--- vm/raw_object.cc (revision 6440)
+++ vm/raw_object.cc (working copy)
@@ -36,7 +36,7 @@
intptr_t RawObject::SizeFromClass() const {
- NoHandleScope no_handles(Isolate::Current());
+ NOHANDLESCOPE(Isolate::Current());
// Only reasonable to be called on heap objects.
ASSERT(IsHeapObject());
@@ -187,7 +187,7 @@
intptr_t RawObject::VisitPointers(ObjectPointerVisitor* visitor) {
intptr_t size = 0;
- NoHandleScope no_handles(Isolate::Current());
+ NOHANDLESCOPE(Isolate::Current());
// Only reasonable to be called on heap objects.
ASSERT(IsHeapObject());
« vm/handles.h ('K') | « vm/pages.cc ('k') | vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698