Revision f230a1cf deps/v8/src/utils.h
deps/v8/src/utils.h | ||
---|---|---|
419 | 419 |
// Returns a vector using the same backing storage as this one, |
420 | 420 |
// spanning from and including 'from', to but not including 'to'. |
421 | 421 |
Vector<T> SubVector(int from, int to) { |
422 |
ASSERT(to <= length_); |
|
423 |
ASSERT(from < to); |
|
422 |
SLOW_ASSERT(to <= length_);
|
|
423 |
SLOW_ASSERT(from < to);
|
|
424 | 424 |
ASSERT(0 <= from); |
425 | 425 |
return Vector<T>(start() + from, to - from); |
426 | 426 |
} |
Also available in: Unified diff