Diff
Modified: releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/ChangeLog 2016-03-16 15:16:37 UTC (rev 198279)
@@ -129,20 +129,6 @@
2016-03-03 Filip Pizlo <[email protected]>
- DFG/FTL should inline accesses to RegExpObject::m_lastIndex
- https://bugs.webkit.org/show_bug.cgi?id=155003
-
- Reviewed by Benjamin Poulain.
-
- * js/regress/regexp-last-index-expected.txt: Added.
- * js/regress/regexp-last-index.html: Added.
- * js/regress/regexp-set-last-index-expected.txt: Added.
- * js/regress/regexp-set-last-index.html: Added.
- * js/regress/script-tests/regexp-last-index.js: Added.
- * js/regress/script-tests/regexp-set-last-index.js: Added.
-
-2016-03-03 Filip Pizlo <[email protected]>
-
Unreviewed, remove test with flaky timeout that doesn't test anything anymore. This test
was relevant back when arguments got torn off; something that we don't do anymore. It
uses a loop that waits for the top-tier compiler to compile it. We don't write tests
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index-expected.txt (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index-expected.txt 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index-expected.txt 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,10 +0,0 @@
-JSRegress/regexp-last-index
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS no exception thrown
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index.html (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index.html 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-last-index.html 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,12 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src=""
-</head>
-<body>
-<script src=""
-<script src=""
-<script src=""
-<script src=""
-</body>
-</html>
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index-expected.txt (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index-expected.txt 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index-expected.txt 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,10 +0,0 @@
-JSRegress/regexp-set-last-index
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS no exception thrown
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index.html (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index.html 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/regexp-set-last-index.html 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,12 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src=""
-</head>
-<body>
-<script src=""
-<script src=""
-<script src=""
-<script src=""
-</body>
-</html>
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-last-index.js (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-last-index.js 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-last-index.js 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,10 +0,0 @@
-(function() {
- var re = /foo/g;
- re.exec("bar foo bar");
- var result = 0;
- var n = 10000000;
- for (var i = 0; i < n; ++i)
- result += re.lastIndex;
- if (result != 7 * n)
- throw "Error: bad result: " + result;
-})();
Deleted: releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-set-last-index.js (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-set-last-index.js 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/LayoutTests/js/regress/script-tests/regexp-set-last-index.js 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,9 +0,0 @@
-(function() {
- var re = /foo/g;
- var n = 10000000;
- for (var i = 0; i < n; ++i)
- re.lastIndex = 5;
- re.exec("foo bar foo");
- if (re.lastIndex != "foo bar foo".length)
- throw "Error: bad value of lastIndx: " + re.lastIndex;
-})();
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ChangeLog (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ChangeLog 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ChangeLog 2016-03-16 15:16:37 UTC (rev 198279)
@@ -545,65 +545,6 @@
* runtime/Lookup.h:
(JSC::putEntry):
-2016-03-03 Filip Pizlo <[email protected]>
-
- DFG/FTL should inline accesses to RegExpObject::m_lastIndex
- https://bugs.webkit.org/show_bug.cgi?id=155003
-
- Reviewed by Benjamin Poulain.
-
- The Octane/regexp benchmark sets RegExps' lastIndex a lot. I could imagine this being
- something that people want to do. Right now, I'm not convinced that making the RegExp object
- be more plain-JS would be a good idea considering that pretty much all uses of it will
- require some special compiler magic. Also, it's good that this patch teaches the compiler
- how to reason about lastIndex since some of my other plans for regexp involve having the
- compiler treat more regexp stuff as intrinsic.
-
- This is a smaller Octane/regexp speed-up than I hoped - maybe around 1%. It's an enormous
- speed-up on the microbenchmarks attached to this patch.
-
- * dfg/DFGAbstractHeap.h:
- * dfg/DFGAbstractInterpreterInlines.h:
- (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
- * dfg/DFGClobberize.h:
- (JSC::DFG::clobberize):
- * dfg/DFGDoesGC.cpp:
- (JSC::DFG::doesGC):
- * dfg/DFGFixupPhase.cpp:
- (JSC::DFG::FixupPhase::fixupNode):
- * dfg/DFGHeapLocation.h:
- * dfg/DFGNodeType.h:
- * dfg/DFGPredictionPropagationPhase.cpp:
- (JSC::DFG::PredictionPropagationPhase::propagate):
- * dfg/DFGSafeToExecute.h:
- (JSC::DFG::safeToExecute):
- * dfg/DFGSpeculativeJIT.cpp:
- (JSC::DFG::SpeculativeJIT::compilePutAccessorByVal):
- (JSC::DFG::SpeculativeJIT::compileGetRegExpObjectLastIndex):
- (JSC::DFG::SpeculativeJIT::compileSetRegExpObjectLastIndex):
- * dfg/DFGSpeculativeJIT.h:
- * dfg/DFGSpeculativeJIT32_64.cpp:
- (JSC::DFG::SpeculativeJIT::compile):
- * dfg/DFGSpeculativeJIT64.cpp:
- (JSC::DFG::SpeculativeJIT::compile):
- * dfg/DFGStoreBarrierInsertionPhase.cpp:
- * ftl/FTLAbstractHeapRepository.cpp:
- * ftl/FTLAbstractHeapRepository.h:
- * ftl/FTLCapabilities.cpp:
- (JSC::FTL::canCompile):
- * ftl/FTLLowerDFGToB3.cpp:
- (JSC::FTL::DFG::LowerDFGToB3::compileNode):
- (JSC::FTL::DFG::LowerDFGToB3::compileStringReplace):
- (JSC::FTL::DFG::LowerDFGToB3::compileGetRegExpObjectLastIndex):
- (JSC::FTL::DFG::LowerDFGToB3::compileSetRegExpObjectLastIndex):
- (JSC::FTL::DFG::LowerDFGToB3::didOverflowStack):
- (JSC::FTL::DFG::LowerDFGToB3::lowObject):
- (JSC::FTL::DFG::LowerDFGToB3::lowRegExpObject):
- (JSC::FTL::DFG::LowerDFGToB3::lowString):
- * runtime/RegExpObject.h:
- (JSC::RegExpObject::createStructure):
- (JSC::RegExpObject::offsetOfLastIndex):
-
2016-03-03 Benjamin Poulain <[email protected]>
[JSC] Add support for MADD, MSUB and MNEG to Air
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractHeap.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractHeap.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractHeap.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2013-2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -58,7 +58,6 @@
macro(JSCell_typeInfoType) \
macro(JSObject_butterfly) \
macro(JSPropertyNameEnumerator_cachedPropertyNames) \
- macro(RegExpObject_lastIndex) \
macro(NamedProperties) \
macro(IndexedInt32Properties) \
macro(IndexedDoubleProperties) \
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractInterpreterInlines.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractInterpreterInlines.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGAbstractInterpreterInlines.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1882,13 +1882,6 @@
case PutClosureVar:
break;
-
- case GetRegExpObjectLastIndex:
- forNode(node).makeHeapTop();
- break;
-
- case SetRegExpObjectLastIndex:
- break;
case GetFromArguments:
forNode(node).makeHeapTop();
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGClobberize.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGClobberize.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGClobberize.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -908,16 +908,6 @@
write(AbstractHeap(ScopeProperties, node->scopeOffset().offset()));
def(HeapLocation(ClosureVariableLoc, AbstractHeap(ScopeProperties, node->scopeOffset().offset()), node->child1()), LazyNode(node->child2().node()));
return;
-
- case GetRegExpObjectLastIndex:
- read(RegExpObject_lastIndex);
- def(HeapLocation(RegExpObjectLastIndexLoc, RegExpObject_lastIndex, node->child1()), LazyNode(node));
- return;
-
- case SetRegExpObjectLastIndex:
- write(RegExpObject_lastIndex);
- def(HeapLocation(RegExpObjectLastIndexLoc, RegExpObject_lastIndex, node->child1()), LazyNode(node->child2().node()));
- return;
case GetFromArguments: {
AbstractHeap heap(DirectArgumentsProperties, node->capturedArgumentsOffset().offset());
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGDoesGC.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGDoesGC.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGDoesGC.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -113,8 +113,6 @@
case SkipScope:
case GetClosureVar:
case PutClosureVar:
- case GetRegExpObjectLastIndex:
- case SetRegExpObjectLastIndex:
case GetGlobalVar:
case GetGlobalLexicalVariable:
case PutGlobalVariable:
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGFixupPhase.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGFixupPhase.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGFixupPhase.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1076,21 +1076,11 @@
&& !m_graph.hasExitSite(node->origin.semantic, BadCache)
&& !m_graph.hasExitSite(node->origin.semantic, BadIndexingType)
&& !m_graph.hasExitSite(node->origin.semantic, ExoticObjectMode)) {
-
auto uid = m_graph.identifiers()[node->identifierNumber()];
-
if (uid == vm().propertyNames->length.impl()) {
attemptToMakeGetArrayLength(node);
break;
}
-
- if (uid == vm().propertyNames->lastIndex.impl()
- && node->child1()->shouldSpeculateRegExpObject()) {
- node->setOp(GetRegExpObjectLastIndex);
- node->clearFlags(NodeMustGenerate);
- fixEdge<RegExpObjectUse>(node->child1());
- break;
- }
}
if (node->child1()->shouldSpeculateCell())
@@ -1101,23 +1091,6 @@
case PutById:
case PutByIdFlush:
case PutByIdDirect: {
- if (node->child1()->shouldSpeculateCellOrOther()
- && !m_graph.hasExitSite(node->origin.semantic, BadType)
- && !m_graph.hasExitSite(node->origin.semantic, BadCache)
- && !m_graph.hasExitSite(node->origin.semantic, BadIndexingType)
- && !m_graph.hasExitSite(node->origin.semantic, ExoticObjectMode)) {
-
- auto uid = m_graph.identifiers()[node->identifierNumber()];
-
- if (uid == vm().propertyNames->lastIndex.impl()
- && node->child1()->shouldSpeculateRegExpObject()) {
- node->setOp(SetRegExpObjectLastIndex);
- fixEdge<RegExpObjectUse>(node->child1());
- speculateForBarrier(node->child2());
- break;
- }
- }
-
fixEdge<CellUse>(node->child1());
break;
}
@@ -1298,8 +1271,6 @@
case KillStack:
case GetStack:
case StoreBarrier:
- case GetRegExpObjectLastIndex:
- case SetRegExpObjectLastIndex:
// These are just nodes that we don't currently expect to see during fixup.
// If we ever wanted to insert them prior to fixup, then we just have to create
// fixup rules for them.
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -147,10 +147,6 @@
case StructureLoc:
out.print("StructureLoc");
return;
-
- case RegExpObjectLastIndexLoc:
- out.print("RegExpObjectLastIndexLoc");
- return;
}
RELEASE_ASSERT_NOT_REACHED();
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGHeapLocation.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2014, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -54,7 +54,6 @@
IsFunctionLoc,
IsObjectOrNullLoc,
NamedPropertyLoc,
- RegExpObjectLastIndexLoc,
SetterLoc,
StructureLoc,
TypedArrayByteOffsetLoc,
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGNodeType.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGNodeType.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGNodeType.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -219,8 +219,6 @@
macro(PutGlobalVariable, NodeMustGenerate) \
macro(NotifyWrite, NodeMustGenerate) \
macro(VarInjectionWatchpoint, NodeMustGenerate) \
- macro(GetRegExpObjectLastIndex, NodeResultJS) \
- macro(SetRegExpObjectLastIndex, NodeMustGenerate) \
macro(CheckCell, NodeMustGenerate) \
macro(CheckNotEmpty, NodeMustGenerate) \
macro(CheckBadCell, NodeMustGenerate) \
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGPredictionPropagationPhase.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGPredictionPropagationPhase.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGPredictionPropagationPhase.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -665,9 +665,7 @@
case PutStack:
case KillStack:
case StoreBarrier:
- case GetStack:
- case GetRegExpObjectLastIndex:
- case SetRegExpObjectLastIndex: {
+ case GetStack: {
// This node should never be visible at this stage of compilation. It is
// inserted by fixup(), which follows this phase.
DFG_CRASH(m_graph, node, "Unexpected node during prediction propagation");
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSafeToExecute.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSafeToExecute.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSafeToExecute.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -333,8 +333,6 @@
case ForwardVarargs:
case CopyRest:
case StringReplace:
- case GetRegExpObjectLastIndex:
- case SetRegExpObjectLastIndex:
return true;
case BottomValue:
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -7597,33 +7597,6 @@
noResult(node);
}
-void SpeculativeJIT::compileGetRegExpObjectLastIndex(Node* node)
-{
- SpeculateCellOperand regExp(this, node->child1());
- JSValueRegsTemporary result(this);
- GPRReg regExpGPR = regExp.gpr();
- JSValueRegs resultRegs = result.regs();
- speculateRegExpObject(node->child1(), regExpGPR);
- m_jit.loadValue(JITCompiler::Address(regExpGPR, RegExpObject::offsetOfLastIndex()), resultRegs);
- jsValueResult(resultRegs, node);
-}
-
-void SpeculativeJIT::compileSetRegExpObjectLastIndex(Node* node)
-{
- SpeculateCellOperand regExp(this, node->child1());
- JSValueOperand value(this, node->child2());
- GPRReg regExpGPR = regExp.gpr();
- JSValueRegs valueRegs = value.jsValueRegs();
- speculateRegExpObject(node->child1(), regExpGPR);
- speculationCheck(
- ExoticObjectMode, JSValueRegs(), nullptr,
- m_jit.branchTest8(
- JITCompiler::Zero,
- JITCompiler::Address(regExpGPR, RegExpObject::offsetOfLastIndexIsWritable())));
- m_jit.storeValue(valueRegs, JITCompiler::Address(regExpGPR, RegExpObject::offsetOfLastIndex()));
- noResult(node);
-}
-
} } // namespace JSC::DFG
#endif
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -2335,8 +2335,6 @@
void compilePutAccessorById(Node*);
void compilePutGetterSetterById(Node*);
void compilePutAccessorByVal(Node*);
- void compileGetRegExpObjectLastIndex(Node*);
- void compileSetRegExpObjectLastIndex(Node*);
void moveTrueTo(GPRReg);
void moveFalseTo(GPRReg);
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT32_64.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT32_64.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT32_64.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -2978,17 +2978,7 @@
cellResult(resultPayload.gpr(), node);
break;
}
-
- case GetRegExpObjectLastIndex: {
- compileGetRegExpObjectLastIndex(node);
- break;
- }
- case SetRegExpObjectLastIndex: {
- compileSetRegExpObjectLastIndex(node);
- break;
- }
-
case ArrayPush: {
ASSERT(node->arrayMode().isJSArray());
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGSpeculativeJIT64.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -3119,16 +3119,6 @@
break;
}
- case GetRegExpObjectLastIndex: {
- compileGetRegExpObjectLastIndex(node);
- break;
- }
-
- case SetRegExpObjectLastIndex: {
- compileSetRegExpObjectLastIndex(node);
- break;
- }
-
case ArrayPush: {
ASSERT(node->arrayMode().isJSArray());
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGStoreBarrierInsertionPhase.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGStoreBarrierInsertionPhase.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/dfg/DFGStoreBarrierInsertionPhase.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015-2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -260,7 +260,6 @@
case PutClosureVar:
case PutToArguments:
- case SetRegExpObjectLastIndex:
case MultiPutByOffset: {
considerBarrier(m_node->child1(), m_node->child2());
break;
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -39,7 +39,6 @@
#include "JSPropertyNameEnumerator.h"
#include "JSScope.h"
#include "JSCInlines.h"
-#include "RegExpObject.h"
#include "ScopedArguments.h"
#include "ScopedArgumentsTable.h"
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLAbstractHeapRepository.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -77,8 +77,6 @@
macro(JSSymbolTableObject_symbolTable, JSSymbolTableObject::offsetOfSymbolTable()) \
macro(JSWrapperObject_internalValue, JSWrapperObject::internalValueOffset()) \
macro(MarkedAllocator_freeListHead, MarkedAllocator::offsetOfFreeListHead()) \
- macro(RegExpObject_lastIndex, RegExpObject::offsetOfLastIndex()) \
- macro(RegExpObject_lastIndexIsWritable, RegExpObject::offsetOfLastIndexIsWritable()) \
macro(ScopedArguments_overrodeThings, ScopedArguments::offsetOfOverrodeThings()) \
macro(ScopedArguments_scope, ScopedArguments::offsetOfScope()) \
macro(ScopedArguments_table, ScopedArguments::offsetOfTable()) \
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLCapabilities.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLCapabilities.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLCapabilities.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -224,8 +224,6 @@
case RegExpTest:
case NewRegexp:
case StringReplace:
- case GetRegExpObjectLastIndex:
- case SetRegExpObjectLastIndex:
// These are OK.
break;
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLLowerDFGToB3.cpp (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLLowerDFGToB3.cpp 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/ftl/FTLLowerDFGToB3.cpp 2016-03-16 15:16:37 UTC (rev 198279)
@@ -926,12 +926,6 @@
case StringReplace:
compileStringReplace();
break;
- case GetRegExpObjectLastIndex:
- compileGetRegExpObjectLastIndex();
- break;
- case SetRegExpObjectLastIndex:
- compileSetRegExpObjectLastIndex();
- break;
case PhantomLocal:
case LoopHint:
@@ -6495,7 +6489,8 @@
if (JSString* replace = m_node->child3()->dynamicCastConstant<JSString*>()) {
if (!replace->length()) {
LValue string = lowString(m_node->child1());
- LValue regExp = lowRegExpObject(m_node->child2());
+ LValue regExp = lowCell(m_node->child2());
+ speculateRegExpObject(m_node->child2(), regExp);
LValue result = vmCall(
Int64, m_out.operation(operationStringProtoFuncReplaceRegExpEmptyStr),
@@ -6507,7 +6502,8 @@
}
LValue string = lowString(m_node->child1());
- LValue regExp = lowRegExpObject(m_node->child2());
+ LValue regExp = lowCell(m_node->child2());
+ speculateRegExpObject(m_node->child2(), regExp);
LValue replace = lowString(m_node->child3());
LValue result = vmCall(
@@ -6526,23 +6522,6 @@
setJSValue(result);
}
- void compileGetRegExpObjectLastIndex()
- {
- setJSValue(m_out.load64(lowRegExpObject(m_node->child1()), m_heaps.RegExpObject_lastIndex));
- }
-
- void compileSetRegExpObjectLastIndex()
- {
- LValue regExp = lowRegExpObject(m_node->child1());
- LValue value = lowJSValue(m_node->child2());
-
- speculate(
- ExoticObjectMode, noValue(), nullptr,
- m_out.isZero32(m_out.load8ZeroExt32(regExp, m_heaps.RegExpObject_lastIndexIsWritable)));
-
- m_out.store64(value, regExp, m_heaps.RegExpObject_lastIndex);
- }
-
LValue didOverflowStack()
{
// This does a very simple leaf function analysis. The invariant of FTL call
@@ -8971,13 +8950,6 @@
speculateObject(edge, result);
return result;
}
-
- LValue lowRegExpObject(Edge edge)
- {
- LValue result = lowCell(edge);
- speculateRegExpObject(edge, result);
- return result;
- }
LValue lowString(Edge edge, OperandSpeculationMode mode = AutomaticOperandSpeculation)
{
Modified: releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/runtime/RegExpObject.h (198278 => 198279)
--- releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/runtime/RegExpObject.h 2016-03-16 15:15:54 UTC (rev 198278)
+++ releases/WebKitGTK/webkit-2.12/Source/_javascript_Core/runtime/RegExpObject.h 2016-03-16 15:16:37 UTC (rev 198279)
@@ -79,16 +79,6 @@
return Structure::create(vm, globalObject, prototype, TypeInfo(RegExpObjectType, StructureFlags), info());
}
- static ptrdiff_t offsetOfLastIndex()
- {
- return OBJECT_OFFSETOF(RegExpObject, m_lastIndex);
- }
-
- static ptrdiff_t offsetOfLastIndexIsWritable()
- {
- return OBJECT_OFFSETOF(RegExpObject, m_lastIndexIsWritable);
- }
-
protected:
JS_EXPORT_PRIVATE RegExpObject(VM&, Structure*, RegExp*);
JS_EXPORT_PRIVATE void finishCreation(VM&);