diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-05-12 05:07:46 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-06-12 17:46:17 -0700 |
commit | 3a280b2034e3ea438cd3a2e7acd1a4cd40112ac5 (patch) | |
tree | ae194faf83fd22ad890b421c2ebd537db1a52534 /deps/v8/test/mjsunit/regress/regress-358057.js | |
parent | 5413d9abe0df7e22bdb650a65f4c0ac462bbe147 (diff) | |
download | node-new-3a280b2034e3ea438cd3a2e7acd1a4cd40112ac5.tar.gz |
deps: upgrade v8 to 3.26.33
Signed-off-by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-358057.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-358057.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-358057.js b/deps/v8/test/mjsunit/regress/regress-358057.js new file mode 100644 index 0000000000..c5fe73a032 --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-358057.js @@ -0,0 +1,19 @@ +// Copyright 2014 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 +__v_0 = new Uint8ClampedArray(10); +for (var i = 0; i < 10; i++) { + __v_0[i] = 0xAA; +} +function __f_12(__v_6) { + if (__v_6 < 0) { + __v_1 = __v_0[__v_6 + 10]; + return __v_1; + } +} + +assertEquals(0xAA, __f_12(-1)); +%OptimizeFunctionOnNextCall(__f_12); +assertEquals(0xAA, __f_12(-1)); |