Thanks.

https://codereview.chromium.org/1325983002/diff/40001/src/interpreter/bytecodes.cc
File src/interpreter/bytecodes.cc (right):

https://codereview.chromium.org/1325983002/diff/40001/src/interpreter/bytecodes.cc#newcode173
src/interpreter/bytecodes.cc:173:
On 2015/09/02 15:22:29, rmcilroy wrote:
nit extra newline

Done.

https://codereview.chromium.org/1325983002/diff/40001/src/interpreter/bytecodes.cc#newcode182
src/interpreter/bytecodes.cc:182: DCHECK_LE(index, parameter_count);
On 2015/09/02 15:22:29, rmcilroy wrote:
/s/DCHECK_LE/DCHECK_LT, no?

Done.

https://codereview.chromium.org/1325983002/diff/40001/src/interpreter/bytecodes.cc#newcode183
src/interpreter/bytecodes.cc:183: DCHECK_LE(parameter_count,
kMaxParameterIndex);
On 2015/09/02 15:22:29, rmcilroy wrote:
ditto

Parameter count can be 1 larger than kMaxParameterIndex, no?

DCHECK_LE(parameter_count, kMaxParameterIndex + 1).

https://codereview.chromium.org/1325983002/diff/40001/test/unittests/interpreter/bytecodes-unittest.cc
File test/unittests/interpreter/bytecodes-unittest.cc (right):

https://codereview.chromium.org/1325983002/diff/40001/test/unittests/interpreter/bytecodes-unittest.cc#newcode27
test/unittests/interpreter/bytecodes-unittest.cc:27: std::vector<int>
parameter_counts{7, 13, 99};
On 2015/09/02 15:22:29, rmcilroy wrote:
Unfortunately I don't think this will work on Mac since it is relying
on c++11
library features. :(

Could you just do something like:
int parameter_counts[] = {7, 13, 99};
size_t count = sizeof parameter_counts / sizeof(int);
for (size_t p = 0; p < count; p++) {...

Done, but with sizeof(parameter_counts[0]) to preserve type.

https://codereview.chromium.org/1325983002/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to