Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1428)

Issue 1003663002: Add Cast() for Int32 and Uint32 (Closed)

Created:
5 years, 9 months ago by bashi
Modified:
5 years, 9 months ago
Reviewers:
dcarney
CC:
v8-dev, Paweł Hajdan Jr., Jens Widell, Yuki
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add Cast() for Int32 and Uint32 It should be possible to cast a Value to Int32 without throwing an exception when IsInt32() is true. Same for Uint32. BUG=chromium:462402 LOG=Y Committed: https://crrev.com/83245abb6b6503772f39625025d64caef84b513f Cr-Commit-Position: refs/heads/master@{#27156}

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M include/v8.h View 3 chunks +22 lines, -0 lines 0 comments Download
M src/api.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
bashi
Here are some contexts: https://codereview.chromium.org/993333002/#msg5 https://codereview.chromium.org/873983003/ In short, I think it's OK to add Cast() ...
5 years, 9 months ago (2015-03-12 10:37:11 UTC) #2
dcarney
https://codereview.chromium.org/1003663002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1003663002/diff/1/src/api.cc#newcode2678 src/api.cc:2678: bool Value::IsInt32() const { return Utils::OpenHandle(this)->IsInt32(); } i don't ...
5 years, 9 months ago (2015-03-12 10:45:58 UTC) #3
bashi
Thank you for review! https://codereview.chromium.org/1003663002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1003663002/diff/1/src/api.cc#newcode2678 src/api.cc:2678: bool Value::IsInt32() const { return ...
5 years, 9 months ago (2015-03-12 12:19:19 UTC) #4
dcarney
lgtm
5 years, 9 months ago (2015-03-12 12:25:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003663002/20001
5 years, 9 months ago (2015-03-12 12:26:36 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-12 12:27:46 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 12:27:53 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/83245abb6b6503772f39625025d64caef84b513f
Cr-Commit-Position: refs/heads/master@{#27156}

Powered by Google App Engine
This is Rietveld 408576698