Bug 29810

Summary: [V8] Unsigned int return values are incorrectly treated as signed.
Product: WebKit Reporter: Dimitri Glazkov (Google) <dglazkov>
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, levin, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Fixed type-conversion error in CodeGeneratorV8.pm, v1.
abarth: review+, commit-queue: commit-queue-
Add index arguments special case, v1. levin: review+

Description Dimitri Glazkov (Google) 2009-09-28 09:11:29 PDT
In CodeGeneratorV8.pm, "unsigned long" return value in IDL incorrectly generates "int" in C++. It should be "unsigned" instead.
Comment 1 Dimitri Glazkov (Google) 2009-09-28 09:12:47 PDT
Created attachment 40238 [details]
Fixed type-conversion error in CodeGeneratorV8.pm, v1.

 WebCore/ChangeLog                           |   13 +++++++++++++
 WebCore/bindings/scripts/CodeGeneratorV8.pm |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)
Comment 2 Adam Barth 2009-09-28 09:15:32 PDT
Comment on attachment 40238 [details]
Fixed type-conversion error in CodeGeneratorV8.pm, v1.

Nice!  I presume the test mentioned already exists.
Comment 3 Dimitri Glazkov (Google) 2009-09-28 09:21:56 PDT
Yep. tkent wrote it :)
Comment 4 Dimitri Glazkov (Google) 2009-09-28 09:29:40 PDT
Landed as http://trac.webkit.org/changeset/48817.
Comment 5 Dimitri Glazkov (Google) 2009-09-28 10:48:10 PDT
Oops. I maked bugs. Fix coming up.
Comment 6 Dimitri Glazkov (Google) 2009-09-28 10:53:24 PDT
Created attachment 40245 [details]
Add index arguments special case, v1.

 WebCore/ChangeLog                           |   13 +++++++++++++
 WebCore/bindings/scripts/CodeGeneratorV8.pm |    5 +++++
 2 files changed, 18 insertions(+), 0 deletions(-)
Comment 7 Dimitri Glazkov (Google) 2009-09-28 10:53:52 PDT
Fix uploaded. Sorry for the troubles.
Comment 8 WebKit Commit Bot 2009-09-28 10:54:18 PDT
Comment on attachment 40238 [details]
Fixed type-conversion error in CodeGeneratorV8.pm, v1.

Rejecting patch 40238 from commit-queue.

Patch https://bugs.webkit.org/attachment.cgi?id=40238 from bug 29810 failed to download and apply.
Comment 9 Dimitri Glazkov (Google) 2009-09-28 10:57:52 PDT
Fix landed as http://trac.webkit.org/changeset/48820.
Comment 10 Eric Seidel (no email) 2009-09-28 13:24:00 PDT
patching file WebCore/bindings/scripts/CodeGeneratorV8.pm
Hunk #1 FAILED at 1711.
1 out of 1 hunk FAILED -- saving rejects to file WebCore/bindings/scripts/CodeGeneratorV8.pm.rej

Was the cause of the rejection.