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

Unified Diff: src/transitions.h

Issue 228333003: Handlefy Descriptor and other code in objects.cc (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
Index: src/transitions.h
diff --git a/src/transitions.h b/src/transitions.h
index 220d54949fb61fa11593e27468e04d72e2b08a19..0b171d7fd48771165b3cff7b5f247dd8dbe3f187 100644
--- a/src/transitions.h
+++ b/src/transitions.h
@@ -102,12 +102,23 @@ class TransitionArray: public FixedArray {
Map* target,
Object* back_pointer);
+ static Handle<TransitionArray> NewWithHandle(
+ SimpleTransitionFlag flag,
+ Handle<Name> key,
+ Handle<Map> target,
+ Handle<Object> back_pointer);
+
MUST_USE_RESULT MaybeObject* ExtendToFullTransitionArray();
// Copy the transition array, inserting a new transition.
// TODO(verwaest): This should not cause an existing transition to be
// overwritten.
- MUST_USE_RESULT MaybeObject* CopyInsert(Name* name, Map* target);
+ static Handle<TransitionArray> CopyInsert(Handle<TransitionArray> array,
+ Handle<Name> name,
+ Handle<Map> target);
+
+ MUST_USE_RESULT MaybeObject* CopyInsert(Name* name,
+ Map* target);
// Copy a single transition from the origin array.
inline void NoIncrementalWriteBarrierCopyFrom(TransitionArray* origin,
@@ -118,6 +129,9 @@ class TransitionArray: public FixedArray {
inline int Search(Name* name);
// Allocates a TransitionArray.
+ static Handle<TransitionArray> AllocateHandle(
+ Isolate* isolate, int number_of_transitions);
+
MUST_USE_RESULT static MaybeObject* Allocate(
Isolate* isolate, int number_of_transitions);

Powered by Google App Engine
This is Rietveld 408576698