On Jun 12, 6:41 pm, Benno <be...@benno.id.au> wrote:
> Hi all,
>
> The line of code in question is this:
>
> bool Code::is_inline_cache_stub() {
>   Kind kind = this->kind();
>   return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND;    <--- This
> is the error
>
> }

I have not convinced myself this isn't a straight compiler error,
however I was able to
work around it by changing the code to:

bool Code::is_inline_cache_stub() {
  int kind = this->kind();
  return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND;
}

To me this isn't a compelling way to fix the problem, so if anyone has
any idea what the real problem is, and why this fix might work I'd
appreciate it. FWIW leaving 'kind' as a 'Kind' and casting it to an
int in the expression does not appear to work.

Thanks,

Benno
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to