Reviewers: jarin,

Message:
Only crashes on arm64.

Description:
Add test for lazy deopt in object literal construction.

BUG=

Please review this at https://codereview.chromium.org/1103833002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+21, -0 lines):
  A test/mjsunit/compiler/lazy-deopt-in-literal.js


Index: test/mjsunit/compiler/lazy-deopt-in-literal.js
diff --git a/test/mjsunit/compiler/lazy-deopt-in-literal.js b/test/mjsunit/compiler/lazy-deopt-in-literal.js
new file mode 100644
index 0000000000000000000000000000000000000000..96f273863d916c35ea956376c3e02d784f9c84f4
--- /dev/null
+++ b/test/mjsunit/compiler/lazy-deopt-in-literal.js
@@ -0,0 +1,21 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax
+
+var glob3 = 0;
+
+function deopt() {
+  %DeoptimizeFunction(fun3);
+  return glob3++;
+}
+
+function fun3() {
+  var r = { 113: deopt(), 113: glob3++, 113: glob3++, 113: 7};
+  return r[113];
+}
+
+var y = fun3();
+assertEquals(7, y);
+assertEquals(3, glob3);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to