Yeah, I've seen the BitField template classes in src/utils.h but they don't 
have any SET and AT methods! There are just Bit field not a Bit map.

On Thursday, April 7, 2016 at 4:46:24 PM UTC+6, Ben Noordhuis wrote:
>
> On Thu, Apr 7, 2016 at 10:55 AM,  <[email protected] <javascript:>> 
> wrote: 
> > Hi guys! 
> > 
> > I'm writing my own implementation of assembler for v8. 
> > I need to have bitmap class with following methods: 
> > 
> > void clear() 
> > 
> > bool at(uint32_t) 
> > 
> > void set_bit(uint32_t) 
> > 
> > 
> > and constructor bitmap(size) 
> > 
> > 
> > Is there any similar class in v8 code? I haven't found it :( 
>
> There are a couple of BitField template classes in src/utils.h that 
> you can use to manipulate words using named constants. 
>
> If you're looking for a dynamically-sized bit vector, I'd just use 
> std::vector<bool> (or std::array<bool, N> for fixed-size bit vectors.) 
>

-- 
-- 
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