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

Unified Diff: vm/object.h

Issue 10783035: Create frequently used symbols in the vm isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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
Index: vm/object.h
===================================================================
--- vm/object.h (revision 9729)
+++ vm/object.h (working copy)
@@ -29,6 +29,7 @@
class Assembler;
class Code;
class LocalScope;
+class Symbols;
#define OBJECT_IMPLEMENTATION(object, super) \
public: /* NOLINT */ \
@@ -365,7 +366,7 @@
cpp_vtable vtable() const { return bit_copy<cpp_vtable>(*this); }
void set_vtable(cpp_vtable value) { *vtable_address() = value; }
- static RawObject* Allocate(const Class& cls,
+ static RawObject* Allocate(intptr_t cls_id,
intptr_t size,
Heap::Space space);
@@ -3286,14 +3287,6 @@
static RawString* ToLowerCase(const String& str,
Heap::Space space = Heap::kNew);
- static RawString* NewSymbol(const char* str);
- template<typename T>
- static RawString* NewSymbol(const T* characters, intptr_t len);
- static RawString* NewSymbol(const String& str);
- static RawString* NewSymbol(const String& str,
- intptr_t begin_index,
- intptr_t length);
-
static RawString* NewFormatted(const char* format, ...);
protected:
@@ -3321,6 +3314,8 @@
intptr_t tags);
HEAP_OBJECT_IMPLEMENTATION(String, Instance);
+
+ friend class Symbols;
};

Powered by Google App Engine
This is Rietveld 408576698