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

Unified Diff: test/mjsunit/load-callback-from-value-classic.js

Issue 149133004: A64: Synchronize with r17807. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « test/mjsunit/keyed-array-call.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/load-callback-from-value-classic.js
diff --git a/test/mjsunit/compiler/minus-zero.js b/test/mjsunit/load-callback-from-value-classic.js
similarity index 84%
copy from test/mjsunit/compiler/minus-zero.js
copy to test/mjsunit/load-callback-from-value-classic.js
index 6efceb54e36834c217732a7974f0c5d2a2cca132..0030c61cf86d8ac0566dff935bd5ac7d34b175a0 100644
--- a/test/mjsunit/compiler/minus-zero.js
+++ b/test/mjsunit/load-callback-from-value-classic.js
@@ -25,13 +25,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --allow-natives-syntax
+Object.defineProperty(Boolean.prototype, "v",
+ {get:function() { return this; }});
-function add(x, y) {
- return x + y;
+function f(b) {
+ return b.v;
}
-assertEquals(0, add(0, 0));
-assertEquals(0, add(0, 0));
-%OptimizeFunctionOnNextCall(add);
-assertEquals(-0, add(-0, -0));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
+assertEquals("object", typeof f(true));
« no previous file with comments | « test/mjsunit/keyed-array-call.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698