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

Function test_minus

deps/v8/test/mjsunit/array-bounds-check-removal.js:164–183  ·  view source on GitHub ↗
(base,cond)

Source from the content-addressed store, hash-verified

162assertUnoptimized(test_base_for_oob);
163
164function test_minus(base,cond) {
165 a[base - 1] = 1;
166 a[base - 2] = 2;
167 a[base + 4] = 3;
168 a[base] = 4;
169 a[base + 4] = base + 4;
170 if (cond) {
171 a[base - 4] = 1;
172 a[base + 5] = 2;
173 a[base + 3] = 3;
174 a[base + 2] = 4;
175 a[base + 4] = base + 4;
176 } else {
177 a[base + 6] = 1;
178 a[base + 4] = 2;
179 a[base + 3] = 3;
180 a[base + 2] = 4;
181 a[base + 4] = base - 4;
182 }
183}
184
185function check_test_minus(base,cond) {
186 if (cond) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected