Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Add a faster API for creating v8::Integer objects (issue 11212004)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
da...@chromium.org  
View profile  
 More options Oct 19 2012, 3:31 am
From: da...@chromium.org
Date: Fri, 19 Oct 2012 07:31:18 +0000
Local: Fri, Oct 19 2012 3:31 am
Subject: Re: Add a faster API for creating v8::Integer objects (issue 11212004)
If you are going to go through all this trouble to optimize for the  
isolate, you
probably should make these inlined for the fast case of looking up a 31-bit
signed integer. If you inline that case and then fall back to api.cc only  
when
you need to allocate a heap number. If you do that, I suspect that it will  
as
fast as the integer cache, unless webkit often caches integers where the  
than
don't fit in the 31-bit signed range.

https://codereview.chromium.org/11212004/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aba...@chromium.org  
View profile  
 More options Oct 19 2012, 4:32 am
From: aba...@chromium.org
Date: Fri, 19 Oct 2012 08:32:28 +0000
Local: Fri, Oct 19 2012 4:32 am
Subject: Re: Add a faster API for creating v8::Integer objects (issue 11212004)
I wanted to do that, but I wasn't sure how.  I couldn't figure out how to  
call
i::Smi::IsValid and i::Smi::FromInt from the header.  Should I just do the  
bit
mashing manually or is there a more structured approach I should use in the
header?

Thanks for the review!

https://codereview.chromium.org/11212004/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
da...@chromium.org  
View profile  
 More options Oct 19 2012, 7:00 am
From: da...@chromium.org
Date: Fri, 19 Oct 2012 11:00:35 +0000
Local: Fri, Oct 19 2012 7:00 am
Subject: Re: Add a faster API for creating v8::Integer objects (issue 11212004)
Actually, I don't know if you will ever be able to replace the int cache  
with
this code, since it allocates handles. Even if it's inlined, the handle
allocation will probably make it more than trivially expensive.

I'll land this in its current form which LGTM. At some point, mstarzinger or
svenpanne might want to make it inlinable, but that won't change the API.

https://codereview.chromium.org/11212004/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »