summaryrefslogtreecommitdiff
path: root/chromium/v8/src/global-handles.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-11-21 14:09:57 +0100
committerAndras Becsi <andras.becsi@digia.com>2013-11-29 15:14:36 +0100
commiteb32ba6f51d0c21d58cd7d89785285ff8fa64624 (patch)
tree2c7c940e1dbee81b89d935626110816b494aa32c /chromium/v8/src/global-handles.h
parent9427c1a0222ebd67efef1a2c7990a0fa5c9aac84 (diff)
downloadqtwebengine-chromium-eb32ba6f51d0c21d58cd7d89785285ff8fa64624.tar.gz
Update chromium to branch 1599.
Change-Id: I04e775a946a208bb4500d3b722bcb05c82b9d7cb Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'chromium/v8/src/global-handles.h')
-rw-r--r--chromium/v8/src/global-handles.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/chromium/v8/src/global-handles.h b/chromium/v8/src/global-handles.h
index 5a4ad13e2f5..cd75133a243 100644
--- a/chromium/v8/src/global-handles.h
+++ b/chromium/v8/src/global-handles.h
@@ -31,7 +31,6 @@
#include "../include/v8.h"
#include "../include/v8-profiler.h"
-#include "handles.h"
#include "list.h"
#include "v8utils.h"
@@ -332,76 +331,6 @@ class GlobalHandles {
};
-class EternalHandles {
- public:
- enum SingletonHandle {
- I18N_TEMPLATE_ONE,
- I18N_TEMPLATE_TWO,
-
- NUMBER_OF_SINGLETON_HANDLES
- };
-
- EternalHandles();
- ~EternalHandles();
-
- int NumberOfHandles() { return size_; }
-
- // Create an EternalHandle, returning the index.
- int Create(Isolate* isolate, Object* object);
-
- // Grab the handle for an existing EternalHandle.
- inline Handle<Object> Get(int index) {
- return Handle<Object>(GetLocation(index));
- }
-
- // Grab the handle for an existing SingletonHandle.
- inline Handle<Object> GetSingleton(SingletonHandle singleton) {
- ASSERT(Exists(singleton));
- return Get(singleton_handles_[singleton]);
- }
-
- // Checks whether a SingletonHandle has been assigned.
- inline bool Exists(SingletonHandle singleton) {
- return singleton_handles_[singleton] != kInvalidIndex;
- }
-
- // Assign a SingletonHandle to an empty slot and returns the handle.
- Handle<Object> CreateSingleton(Isolate* isolate,
- Object* object,
- SingletonHandle singleton) {
- ASSERT(singleton_handles_[singleton] == kInvalidIndex);
- singleton_handles_[singleton] = Create(isolate, object);
- return Get(singleton_handles_[singleton]);
- }
-
- // Iterates over all handles.
- void IterateAllRoots(ObjectVisitor* visitor);
- // Iterates over all handles which might be in new space.
- void IterateNewSpaceRoots(ObjectVisitor* visitor);
- // Rebuilds new space list.
- void PostGarbageCollectionProcessing(Heap* heap);
-
- private:
- static const int kInvalidIndex = -1;
- static const int kShift = 8;
- static const int kSize = 1 << kShift;
- static const int kMask = 0xff;
-
- // Gets the slot for an index
- inline Object** GetLocation(int index) {
- ASSERT(index >= 0 && index < size_);
- return &blocks_[index >> kShift][index & kMask];
- }
-
- int size_;
- List<Object**> blocks_;
- List<int> new_space_indices_;
- int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES];
-
- DISALLOW_COPY_AND_ASSIGN(EternalHandles);
-};
-
-
} } // namespace v8::internal
#endif // V8_GLOBAL_HANDLES_H_