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

Unified Diff: test/mjsunit/regress/regress-crbug-172345.js

Issue 12082023: Do not try to collect the map if the monomorphic IC stub has no map. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add regression test, stay monomorphic when no maps are found in original monomorphic stub. Created 7 years, 11 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
« no previous file with comments | « src/ic.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-172345.js
diff --git a/test/mjsunit/regress/regress-crbug-170856.js b/test/mjsunit/regress/regress-crbug-172345.js
similarity index 92%
copy from test/mjsunit/regress/regress-crbug-170856.js
copy to test/mjsunit/regress/regress-crbug-172345.js
index 2e73b12caaf78c8b070c243ee79d3b8e557ad97d..711501caa791f2974635ac4dd894568a2e3fc982 100644
--- a/test/mjsunit/regress/regress-crbug-170856.js
+++ b/test/mjsunit/regress/regress-crbug-172345.js
@@ -25,9 +25,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-r = new RegExp("a");
-for (var i = 0; i < 100; i++) {
- r["abc" + i] = i;
+function f(a,i) {
+ return a[i];
}
-"zzzz".replace(r, "");
-assertEquals(0, r.lastIndex);
+
+f([1,2,3], "length");
+f([1,2,3], "length");
+f([1,2,3], 2);
« no previous file with comments | « src/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698