If you are referring to HOptimizedGraphBuilder::Bailout, then those calls
bail out of the optimization itself. This means the optimizing compiler
aborts and doesn't even generate optimized code. That is unrelated to
deoptimization. Looking through the call-sites of these functions basically
lists all the limitations of Crankshaft (e.g. language constructs that it
cannot yet handle). Some of those limitations are caught earlier because
some AST nodes mark the whole function as not optimizable and Crankshaft
will not even be fired up for them.

Best regards,
Michael


On Mon, Apr 15, 2013 at 10:43 AM, Dmitry Lomov <[email protected]> wrote:

> HOptimizedGraphBuilder is essentially the optimizing compiler.
> Optimizer generates optimized code under certain assumptions (about types
> of variables etc.). Bailouts execute when those assumptions are detected to
> be violated. In that case deoptimizer kicks in and V8 switches to
> un-optimized code for the function. This does not preclude regeneration of
> optimized code for that function in the future (possibly with new
> assumptions about variable types).
>
> Hope this helps,
> Dmitry
>
>
> On Mon, Apr 15, 2013 at 4:49 AM, Amy <[email protected]> wrote:
>
>> Is it that HOptimizedGraphBuilder happening during the optimization? And
>> Bailout disables the optimization for this?
>>
>>
>> On Sunday, April 14, 2013 7:42:41 PM UTC-7, Amy wrote:
>>>
>>> In the code related to HOptimizedGraphBuilder, I see a lot of Bailout
>>> call sites.
>>>
>>>  When will the HOptimizedGraphBuilder be called? Are they happening
>>> during the Hydrogen optimization process?
>>>
>>>
>>>  Who will call it?
>>>
>>>
>>>   After Bailout, what will happen?
>>>
>>> Thanks.
>>>
>>  --
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "v8-users" 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/groups/opt_out.
>>
>>
>>
>
>  --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" 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/groups/opt_out.
>
>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" 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/groups/opt_out.


Reply via email to