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

Unified Diff: vm/object.cc

Issue 11519006: Add read only handles for the following predefined symbols (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/object.h ('k') | vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 15918)
+++ vm/object.cc (working copy)
@@ -1250,6 +1250,13 @@
};
+bool Object::IsNotTemporaryScopedHandle() const {
+ return (IsZoneHandle() ||
+ Symbols::IsPredefinedHandle(reinterpret_cast<uword>(this)));
+}
+
+
+
RawObject* Object::Clone(const Object& src, Heap::Space space) {
const Class& cls = Class::Handle(src.clazz());
intptr_t size = src.raw()->Size();
@@ -3395,10 +3402,9 @@
bool Function::IsInlineable() const {
// '==' call is handled specially.
- const String& equality_name = String::Handle(Symbols::EqualOperator());
return InlinableBit::decode(raw_ptr()->kind_tag_) &&
HasCode() &&
- name() != equality_name.raw();
+ name() != Symbols::EqualOperator();
}
« no previous file with comments | « vm/object.h ('k') | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698