diff options
author | isaacs <i@izs.me> | 2012-03-28 19:51:38 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-28 19:51:38 -0700 |
commit | 4b64542fe09477fc5c70e974eb1a78cdce755eb7 (patch) | |
tree | b4d4cdfd5b07efbdae51098b422fde7844ff4715 /deps/v8/src/elements.h | |
parent | 8a15147bc53849417f8737dd873877d497867c9f (diff) | |
download | node-new-4b64542fe09477fc5c70e974eb1a78cdce755eb7.tar.gz |
Upgrade V8 to 3.9.24.6
Diffstat (limited to 'deps/v8/src/elements.h')
-rw-r--r-- | deps/v8/src/elements.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/deps/v8/src/elements.h b/deps/v8/src/elements.h index 5b5be23b10..ff97c08324 100644 --- a/deps/v8/src/elements.h +++ b/deps/v8/src/elements.h @@ -88,6 +88,15 @@ class ElementsAccessor { uint32_t key, JSReceiver::DeleteMode mode) = 0; + // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all + // of elements from source after source_start to the destination array. + static const int kCopyToEnd = -1; + // If kCopyToEndAndInitializeToHole is specified as the copy_size to + // CopyElements, it copies all of elements from source after source_start to + // destination array, padding any remaining uninitialized elements in the + // destination array with the hole. + static const int kCopyToEndAndInitializeToHole = -2; + // Copy elements from one backing store to another. Typically, callers specify // the source JSObject or JSArray in source_holder. If the holder's backing // store is available, it can be passed in source and source_holder is @@ -104,7 +113,8 @@ class ElementsAccessor { FixedArrayBase* to, ElementsKind to_kind, FixedArrayBase* from = NULL) { - return CopyElements(from_holder, 0, to, to_kind, 0, -1, from); + return CopyElements(from_holder, 0, to, to_kind, 0, + kCopyToEndAndInitializeToHole, from); } virtual MaybeObject* AddElementsToFixedArray(Object* receiver, @@ -146,8 +156,7 @@ class ElementsAccessor { }; -void CopyObjectToObjectElements(AssertNoAllocation* no_gc, - FixedArray* from_obj, +void CopyObjectToObjectElements(FixedArray* from_obj, ElementsKind from_kind, uint32_t from_start, FixedArray* to_obj, |