Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 (function() { | |
| 6 function f(src, dst, i) { | |
| 7 dst[i] = src[i]; | |
| 8 } | |
| 9 var buf = new ArrayBuffer(16); | |
| 10 var view_int32 = new Int32Array(buf); | |
| 11 view_int32[1] = 0xFFF7FFFF; | |
| 12 var view_f64 = new Float64Array(buf); | |
| 13 var arr = [,0.1]; | |
| 14 f(view_f64, arr, -1); | |
| 15 f(view_f64, arr, 0); | |
| 16 })(); | |
| OLD | NEW |