1. 10 Mar, 2014 1 commit
  2. 07 Mar, 2014 6 commits
  3. 04 Mar, 2014 1 commit
  4. 19 Feb, 2014 1 commit
  5. 13 Feb, 2014 1 commit
    • vegorov@chromium.org's avatar
      Improve positions tracking inside the HGraphBuilder. · 8f170a66
      vegorov@chromium.org authored
      Instead of tracking simple absolute offset from the start of the script like other places do, track a pair of (inlining id, offset from the start of inlined function).
      
      This enables us to pinpoint with inlining path an instruction came from. Previously in multi-script environments we emitted positions that made very little sense because inside a single optimized function they would point to different scripts without a way to distinguish them.
      
      Start dumping the source of every inlined function to make possible IR viewing tools with integrated source views as there was previously no way to acquire this information from IR dumps. We also dump source position at which each inlining occured.
      
      Tracked positions are written into hydrogen.cfg as pos:<inlining-id>_<offset>.
      
      Flag --emit-opt-code-positions is renamed by this change into --hydrogen-track-positions to better convey it's meaning.
      
      In addition this change assigned global unique identifier to each optimization performed inside isolate. This allows to precisely match compilation artifacts (e.g. IR and disassembly) and deoptimizations.
      
      BUG=
      R=yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/140683011
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19360 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      8f170a66
  6. 30 Jan, 2014 1 commit
  7. 29 Jan, 2014 5 commits
  8. 28 Jan, 2014 1 commit
  9. 24 Jan, 2014 1 commit
  10. 17 Jan, 2014 1 commit
  11. 16 Jan, 2014 5 commits
  12. 15 Jan, 2014 2 commits
    • jarin@chromium.org's avatar
      Fix Win32 buildbreak (caused by overriden methods that have disappeared · 33b3f563
      jarin@chromium.org authored
      while having the patch out for code review).
      
      R=danno@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/136303004
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      33b3f563
    • jarin@chromium.org's avatar
      This is a preview of a first step towards unification of the hydrogen · 19d83271
      jarin@chromium.org authored
      call machinery.  The change replaces CallNamed, CallKeyed,
      CallConstantFunction and CallKnownGlobal hydrogen instructions with two
      new instructions with a more lower level semantics:
      
      1. CallJSFunction for direct calls of JSFunction objects (no
         argument adaptation)
      
      2. CallWithDescriptor for calls of a given Code object according to
         the supplied calling convention.
      
      Details:
      
      CallJSFunction should be straightforward, the main difference from the
      existing InvokeFunction instruction is the absence of argument adaptor
      handling. (As a next step, we will replace InvokeFunction with an
      equivalent hydrogen code.)
      
      For CallWithDescriptor, the calling conventions are represented by a
      tweaked version of CallStubInterfaceDescriptor. In addition to the
      parameter-register mapping, we also define parameter-representation
      mapping there. The CallWithDescriptor instruction has variable number of
      parameters now - this required some simple tweaks in Lithium, which
      assumed fixed number of arguments in some places.
      
      The calling conventions used in the calls are initialized in the
      CallDescriptors class (code-stubs.h, <arch>/code-stubs-<arch>.cc), and
      they live in a new table in the Isolate class. I should say I am not
      quite sure about Representation::Integer32() representation for some of
      the params of ArgumentAdaptorCall - it is not clear to me wether the
      params could not end up on the stack and thus confuse the GC.
      
      The change also includes an earlier small change to argument adaptor
      (https://codereview.chromium.org/98463007) that avoids passing a naked
      pointer to the code entry as a parameter. I am sorry for packaging that
      with an already biggish change.
      
      Performance implications:
      
      Locally, I see a small regression (.2% or so). It is hard to say where
      exactly it comes from, but I do see inefficient call sequences to the
      adaptor trampoline. For example:
      
      ;;; <@78,#24> constant-t
      bf85aa515a     mov edi,0x5a51aa85          ;; debug: position 29
      ;;; <@72,#53> load-named-field
      8b7717         mov esi,[edi+0x17]          ;; debug: position 195
      ;;; <@80,#51> constant-s
      b902000000     mov ecx,0x2                 ;; debug: position 195
      ;;; <@81,#51> gap
      894df0         mov [ebp+0xf0],ecx
      ;;; <@82,#103> constant-i
      bb01000000     mov ebx,0x1
      ;;; <@84,#102> constant-i
      b902000000     mov ecx,0x2
      ;;; <@85,#102> gap
      89d8           mov eax,ebx
      89cb           mov ebx,ecx
      8b4df0         mov ecx,[ebp+0xf0]
      ;;; <@86,#58> call-with-descriptor
      e8ef57fcff     call ArgumentsAdaptorTrampoline  (0x2d80e6e0)    ;; code: BUILTIN
      
      Note the silly handling of ecx; the hydrogen for this code is:
      
      0 4 s27 Constant 1  range:1_1 <|@
      0 3 t30 Constant 0x5bc1aa85 <JS Function xyz (SharedFunctionInfo 0x5bc1a919)> type:object <|@
      0 1 t36 LoadNamedField t30.[in-object]@24 <|@
      0 1 t38 Constant 0x2300e6a1 <Code> <|@
      0 1 i102 Constant 2  range:2_2 <|@
      0 1 i103 Constant 1  range:1_1 <|@
      0 2 t41 CallWithDescriptor t38 t30 t36 s27 i103 i102 #2 changes[*] <|@
      
      BUG=
      R=verwaest@chromium.org, danno@chromium.org
      
      Review URL: https://codereview.chromium.org/104663004
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18626 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      19d83271
  13. 14 Jan, 2014 1 commit
  14. 07 Jan, 2014 1 commit
    • jarin@chromium.org's avatar
      Fixed Lithium environment generation bug for captured objects (created · acf24331
      jarin@chromium.org authored
      by escape analysis). Added several tests that expose the bug.
      
      Summary:
      LCodegen::AddToTranslation assumes that Lithium environments are
      generated by depth-first traversal, but LChunkBuilder::CreateEnvironment
      was generating them in breadth-first fashion. This fixes the
      CreateEnvironment to traverse the captured objects depth-first.
      
      Note:
      It might be worth considering representing LEnvironment by a list
      with the same order as the serialized translation representation
      rather than having two lists with a subtle relationship between
      them (and then serialize in a slightly different order again).
      
      R=titzer@chromium.org, mstarzinger@chromium.org
      LOG=N
      BUG=
      
      Review URL: https://codereview.chromium.org/93803003
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18470 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      acf24331
  15. 18 Dec, 2013 1 commit
  16. 04 Dec, 2013 1 commit
  17. 02 Dec, 2013 1 commit
  18. 28 Nov, 2013 1 commit
  19. 22 Nov, 2013 1 commit
  20. 21 Nov, 2013 2 commits
  21. 19 Nov, 2013 1 commit
  22. 12 Nov, 2013 1 commit
  23. 08 Nov, 2013 1 commit
  24. 07 Nov, 2013 2 commits