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

Side by Side Diff: test/mjsunit/compiler/truncating-store-deopt.js

Issue 997983004: [turbofan] Support lazy deopt for truncating store to a typed array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | test/unittests/compiler/js-operator-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --allow-natives-syntax
6
7 function g(a, b, c) {
8 return a + b + c;
9 }
10
11 var asm = (function Module(global, env, buffer) {
12 "use asm";
13
14 var i32 = new global.Int32Array(buffer);
15
16 // This is not valid asm.js, but we should still generate correct code.
17 function store(x) {
18 return g(1, i32[0] = x, 2);
19 }
20
21 return { store: store };
22 })({
23 "Int32Array": Int32Array
24 }, {}, new ArrayBuffer(64 * 1024));
25
26 var o = { toString : function() { %DeoptimizeFunction(asm.store); return "1"; } }
27
28 asm.store(o);
OLDNEW
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | test/unittests/compiler/js-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698