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

Unified Diff: runtime/vm/object.h

Issue 98253009: Refactor VM service IDs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 93c865f79049954434a0f101ed5c893c7d4b53a5..bf4f0e092700fd33af75eec06ea12d129a10b735 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -878,6 +878,7 @@ class Class : public Object {
RawArray* fields() const { return raw_ptr()->fields_; }
void SetFields(const Array& value) const;
+ intptr_t FindFieldIndex(const Field& field) const;
// Returns an array of all fields of this class and its superclasses indexed
// by offset in words.
@@ -889,12 +890,14 @@ class Class : public Object {
RawArray* functions() const { return raw_ptr()->functions_; }
void SetFunctions(const Array& value) const;
void AddFunction(const Function& function) const;
+ intptr_t FindFunctionIndex(const Function& function) const;
RawGrowableObjectArray* closures() const {
return raw_ptr()->closure_functions_;
}
void AddClosureFunction(const Function& function) const;
RawFunction* LookupClosureFunction(intptr_t token_pos) const;
+ intptr_t FindClosureIndex(intptr_t token_pos) const;
RawFunction* LookupDynamicFunction(const String& name) const;
RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const;
@@ -5071,7 +5074,8 @@ class String : public Instance {
intptr_t len);
static RawString* EscapeSpecialCharacters(const String& str);
-
+ static RawString* EncodeURI(const String& str);
+ static RawString* DecodeURI(const String& str);
static RawString* Concat(const String& str1,
const String& str2,
Heap::Space space = Heap::kNew);
@@ -5162,7 +5166,8 @@ class OneByteString : public AllStatic {
*CharAddr(str, index) = code_point;
}
static RawOneByteString* EscapeSpecialCharacters(const String& str);
-
+ static RawOneByteString* EncodeURI(const String& str);
+ static RawOneByteString* DecodeURI(const String& str);
// We use the same maximum elements for all strings.
static const intptr_t kBytesPerElement = 1;
static const intptr_t kMaxElements = String::kMaxElements;
@@ -5386,6 +5391,8 @@ class ExternalOneByteString : public AllStatic {
}
static RawOneByteString* EscapeSpecialCharacters(const String& str);
+ static RawOneByteString* EncodeURI(const String& str);
+ static RawOneByteString* DecodeURI(const String& str);
static const ClassId kClassId = kExternalOneByteStringCid;

Powered by Google App Engine
This is Rietveld 408576698