Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneWeird committed Aug 1, 2017
1 parent fa6acac commit a551727
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WKC/WebKit/WKC/webkit/WKCVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define WKC_VERSION_CHECK(major, minor, micro) \
(((major)*10000) + ((minor)*100) + (micro)) >= ((WKC_VERSION_MAJOR*10000) + (WKC_VERSION_MINOR*100) + (WKC_VERSION_MICRO))

#define WKC_CUSTOMER_RELEASE_VERSION "0.6.9"
#define WKC_CUSTOMER_RELEASE_VERSION "0.6.10"

#define WKC_WEBKIT_VERSION "601.6"

Expand Down
14 changes: 12 additions & 2 deletions webkit/JavaScriptCore/runtime/JSArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,12 @@ JSArray* JSArray::fastSlice(ExecState& exec, unsigned startIndex, unsigned count
if (count >= MIN_SPARSE_ARRAY_INDEX || structure(vm)->holesMustForwardToPrototype(vm))
return nullptr;

Structure* resultStructure = exec.lexicalGlobalObject()->arrayStructureForIndexingTypeDuringAllocation(arrayType);
JSGlobalObject* lexicalGlobalObject = exec.lexicalGlobalObject();
Structure* resultStructure = lexicalGlobalObject->arrayStructureForIndexingTypeDuringAllocation(arrayType);
if (UNLIKELY(hasAnyArrayStorage(resultStructure->indexingType())))
return nullptr;

ASSERT(!lexicalGlobalObject->isHavingABadTime());
JSArray* resultArray = JSArray::tryCreateUninitialized(vm, resultStructure, count);
if (!resultArray)
return nullptr;
Expand Down Expand Up @@ -718,7 +723,12 @@ EncodedJSValue JSArray::fastConcatWith(ExecState& exec, JSArray& otherArray)
unsigned otherArraySize = otherArray.m_butterfly->publicLength();
ASSERT(thisArraySize + otherArraySize < MIN_SPARSE_ARRAY_INDEX);

Structure* resultStructure = exec.lexicalGlobalObject()->arrayStructureForIndexingTypeDuringAllocation(newArrayType);
JSGlobalObject* lexicalGlobalObject = exec.lexicalGlobalObject();
Structure* resultStructure = lexicalGlobalObject->arrayStructureForIndexingTypeDuringAllocation(newArrayType);
if (UNLIKELY(hasAnyArrayStorage(resultStructure->indexingType())))
return JSValue::encode(throwOutOfMemoryError(&exec));

ASSERT(!lexicalGlobalObject->isHavingABadTime());
JSArray* resultArray = JSArray::tryCreateUninitialized(vm, resultStructure, thisArraySize + otherArraySize);
if (!resultArray)
return JSValue::encode(throwOutOfMemoryError(&exec));
Expand Down

0 comments on commit a551727

Please sign in to comment.