BTW console.log works as expected. On Monday, June 4, 2018 at 7:20:01 PM UTC+5, [email protected] wrote: > > I've found > <https://cs.chromium.org/chromium/src/v8/src/runtime/runtime-test.cc?type=cs&q=runtime_debugprint&g=0&l=525> > > DebugPrint() implementation, however it seems that it does not work on > android. > I've tried forwarding std to android log with `./adb shell setprop > log.redirect-stdio true` but it does not work - adb just does not recognize > '' arg: > >> Unrecognized option -Xlog-stdio > > > I had to add ugly alternative which crashes the app with fatal output: > RUNTIME_FUNCTION(Runtime_MyForkDebugPrint) { > HandleScope scope(isolate); > > > DCHECK_EQ(1, args.length()); > > > CONVERT_ARG_HANDLE_CHECKED(String, message, 0); > FATAL("MyFork: v8_debug: %s\n", message->ToCString().get()); > > > return 0; > } > > Yes, i know how ugly it is. > > Bu who calls CreateNumberFormat()? > I've found that > <https://cs.chromium.org/chromium/src/v8/src/js/intl.js?type=cs&q=CreateNumberFormat&g=0&l=1395> > > but i'm not sure i understand it correctly. > > On Monday, June 4, 2018 at 7:07:09 PM UTC+5, Jakob Gruber wrote: >> >> Have you tried console.log? I'm not familiar with android / v8 debugging >> unfortunately. >> >> Another possibility is to try reproducing in a simulator build. >> >> On Mon, Jun 4, 2018 at 2:57 PM, <[email protected]> wrote: >> >>> Unfortunately adding "%DebugPrint(requestedLocale);" in intl.js in >>> CreateNumberFormat() does not show anything in android logcat. >>> Should i do anything specific? >>> >>> On Monday, June 4, 2018 at 1:37:35 PM UTC+5, Jakob Gruber wrote: >>>> >>>> >>>> >>>> On Sat, Jun 2, 2018 at 2:02 PM, <[email protected]> wrote: >>>> >>>>> Hey, guys. >>>>> >>>>> I'm working on Chromium fork and i'm having really weird behaviour - i >>>>> don't have any issues in Debug mode, >>>>> but in Release mode i'm, getting the following fatal >>>>> <https://cs.chromium.org/chromium/src/v8/src/objects/intl-objects.cc?type=cs&q=%22Failed+to+create+ICU+number+format,+are+ICU+data+files+missing?%22&sq=package:chromium&g=0&l=893> >>>>> : >>>>> > Failed to create ICU number format, are ICU data files missing? >>>>> >>>>> I've found "locale" variable is "und" in Release mode, but "ru" >>>>> (expected value) in Debug mode in "Runtime_CreateNumberFormat": >>>>> <https://cs.chromium.org/chromium/src/v8/src/runtime/runtime-intl.cc?type=cs&q=Runtime_CreateNumberFormat&g=0&l=285> >>>>> I wonder where "locale" variable comes from? >>>>> >>>>> Any documentation links or explanation is highly appreciated. >>>>> >>>> >>>> The locale variable is passed in from the single callsite in intl.js >>>> [0]. You should start digging there with printf-style debugging using >>>> %DebugPrint. >>>> >>>> [0] >>>> https://cs.chromium.org/chromium/src/v8/src/js/intl.js?l=1373&rcl=9b39cfe022a85a3e9bdd08d27bac7365ceb6208e >>>> >>>> >>>>> >>>>> BTW. I've patched >>>>> <https://github.com/adblockplus/v8-googlesource/commit/8230b69454fc852bad9d6658d621f0d704276dca> >>>>> >>>>> V8 to make it compilable as for "component build" as shared library even >>>>> for Chromium non-component build (i can explain if required). >>>>> Did i make anything wrong here? >>>>> >>>> >>>
-- -- 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.
