I am looking at getting optimize-for-size to optimize memory consumption in 
my device.
I am using chromium within android kitkat. V8 version with that 
chromium(M30) is 16159.

To fetch these optimization , i applied the patches relative to this 
optimize-for-size from
https://code.google.com/p/v8/source/detail?r=17343

https://code.google.com/p/v8/source/detail?r=17369

I add the optimize-for-size option as below in render_process_impl.cc

  webkit_glue::SetJavaScriptFlags(
      "--debugger-auto-break"
      "--optimize-for-size"
      " --prof --prof-lazy");

There was no effect of any changes , so changed the FLAG_optimize_for_size 
to true in flag_definitions.h
With this , code starts crashing without information on backtrace ( i think 
the crash is at assembly level).


Is this option supported in arm. I am unable to upgrade chromium within 
android . So any help here to get these optimizations would help a lot.

On Saturday, January 3, 2015 12:06:56 AM UTC+5:30, Caitlin Potter wrote:
>
> Easy way to find out:
>
> EchoBeach:v8 caitp$ grep 'FLAG_optimize_for_size' -r src
>
> src/arm/full-codegen-arm.cc:      int kMaxPushes = FLAG_optimize_for_size 
> ? 4 : 32;
>
> src/arm64/full-codegen-arm64.cc:      if (FLAG_optimize_for_size) {
>
> src/arm64/macro-assembler-arm64.cc:  if (FLAG_optimize_for_size && count > 
> 8) {
>
> src/arm64/macro-assembler-arm64.cc:  if (FLAG_optimize_for_size) {
>
> src/arm64/macro-assembler-arm64.cc:  if ((hint == kCopyLong || hint == 
> kCopyUnknown) && !FLAG_optimize_for_size) {
>
> src/compiler.h:    return FLAG_optimize_for_size && FLAG_age_code && 
> !will_serialize() &&
>
> src/mips/full-codegen-mips.cc:      int kMaxPushes = 
> FLAG_optimize_for_size ? 4 : 32;
>
> src/mips64/full-codegen-mips64.cc:      int kMaxPushes = 
> FLAG_optimize_for_size ? 4 : 32;
>
> src/ppc/full-codegen-ppc.cc:      int kMaxPushes = FLAG_optimize_for_size 
> ? 4 : 32;
>
>
> On Friday, 2 January 2015 13:32:35 UTC-5, [email protected] wrote:
>>
>> Hello,
>> I see this option being specified as javascriptflag for LowEndDevices.
>> But i do not see any intepretation of this option in V8 side to enable 
>> code suitable for this option.
>>
>> Could you point me to the code which acts on this flag ?
>>
>

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