MCPcopy Create free account
hub / github.com/nodejs/node / test_base

Function test_base

deps/v8/test/mjsunit/array-bounds-check-removal.js:56–75  ·  view source on GitHub ↗
(a, base, condition)

Source from the content-addressed store, hash-verified

54test_do_not_assert_on_non_int32(v,0);
55
56function test_base(a, base, condition) {
57 a[base + 1] = 1;
58 a[base + 4] = 2;
59 a[base + 3] = 3;
60 a[base + 2] = 4;
61 a[base + 4] = base + 4;
62 if (condition) {
63 a[base + 1] = 1;
64 a[base + 2] = 2;
65 a[base + 2] = 3;
66 a[base + 2] = 4;
67 a[base + 4] = base + 4;
68 } else {
69 a[base + 6] = 1;
70 a[base + 4] = 2;
71 a[base + 3] = 3;
72 a[base + 2] = 4;
73 a[base + 4] = base - 4;
74 }
75}
76
77function check_test_base(a, base, condition) {
78 if (condition) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected