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

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
« no previous file with comments | « vm/isolate.cc ('k') | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 9829)
+++ vm/object.h (working copy)
@@ -29,6 +29,7 @@
class Assembler;
class Code;
class LocalScope;
+class Symbols;
#define OBJECT_IMPLEMENTATION(object, super) \
public: /* NOLINT */ \
@@ -371,7 +372,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);
@@ -3328,14 +3329,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:
@@ -3363,6 +3356,8 @@
intptr_t tags);
HEAP_OBJECT_IMPLEMENTATION(String, Instance);
+
+ friend class Symbols;
};
« no previous file with comments | « vm/isolate.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698