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

Unified Diff: vm/handles.h

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/dart_api_impl.cc ('K') | « vm/dart_api_impl.cc ('k') | vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/handles.h
===================================================================
--- vm/handles.h (revision 6440)
+++ vm/handles.h (working copy)
@@ -304,20 +304,13 @@
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(NoHandleScope);
};
-#else // defined(DEBUG)
-class NoHandleScope : public ValueObject {
- public:
- explicit NoHandleScope(BaseIsolate* isolate) { }
- ~NoHandleScope() { }
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(NoHandleScope);
-};
-#endif // defined(DEBUG)
-
// Macro to start a no handles scope in the code.
#define NOHANDLESCOPE(isolate) \
dart::NoHandleScope no_vm_internal_handles_scope_(isolate);
+#else // defined(DEBUG)
+#define NOHANDLESCOPE(isolate)
+#endif // defined(DEBUG)
siva 2012/04/12 02:18:13 Does this make a big difference in the numbers? S
turnidge 2012/04/16 20:07:24 I had seen a difference before but was unable to r
} // namespace dart
« vm/dart_api_impl.cc ('K') | « vm/dart_api_impl.cc ('k') | vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698