Add HeapNumber fast path to v8::Value::{Uint,Int}32Value()
authorjkummerow <jkummerow@chromium.org>
Mon, 26 Jan 2015 15:07:59 +0000 (07:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 26 Jan 2015 15:08:04 +0000 (15:08 +0000)
commit0e11bb7b853a4d48d1231d3aa068e92677c43c05
tree3861808d2bc974230f9c24bc0a88089ac4b03070
parent8e838f705c32c5a40e4618d47f8feaa4ca41757a
Add HeapNumber fast path to v8::Value::{Uint,Int}32Value()

This has the added benefit that these functions are now guaranteed not to throw when v8::Value::Is{Uint,Int}32() returned true, even when calling into JavaScript would throw a stack limit error.

BUG=chromium:446097
LOG=y

Review URL: https://codereview.chromium.org/873983003

Cr-Commit-Position: refs/heads/master@{#26273}
src/api.cc