1. 16 Nov, 2016 1 commit
  2. 15 Nov, 2016 1 commit
  3. 14 Nov, 2016 2 commits
    • tebbi's avatar
      This CL enables precise source positions for all V8 compilers. It merges... · c3a6ca68
      tebbi authored
      This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset.
      SourcePosition::InliningId() refers to a the new table DeoptimizationInputData::InliningPositions(), which provides the following data for every inlining id:
       - The inlined SharedFunctionInfo as an offset into DeoptimizationInfo::LiteralArray
       - The SourcePosition of the inlining. Recursively, this yields the full inlining stack.
      Before the Code object is created, the same information can be found in CompilationInfo::inlined_functions().
      
      If SourcePosition::InliningId() is SourcePosition::kNotInlined, it refers to the outer (non-inlined) function.
      So every SourcePosition has full information about its inlining stack, as long as the corresponding Code object is known. The internal represenation of a source position is a positive 64bit integer.
      
      All compilers create now appropriate source positions for inlined functions. In the case of Turbofan, this required using AstGraphBuilderWithPositions for inlined functions too. So this class is now moved to a header file.
      
      At the moment, the additional information in source positions is only used in --trace-deopt and --code-comments. The profiler needs to be updated, at the moment it gets the correct script offsets from the deopt info, but the wrong script id from the reconstructed deopt stack, which can lead to wrong outputs. This should be resolved by making the profiler use the new inlining information for deopts.
      
      I activated the inlined deoptimization tests in test-cpu-profiler.cc for Turbofan, changing them to a case where the deopt stack and the inlining position agree. It is currently still broken for other cases.
      
      The following additional changes were necessary:
       - The source position table (internal::SourcePositionTableBuilder etc.) supports now 64bit source positions. Encoding source positions in a single 64bit int together with the difference encoding in the source position table results in very little overhead for the inlining id, since only 12% of the source positions in Octane have a changed inlining id.
       - The class HPositionInfo was effectively dead code and is now removed.
       - SourcePosition has new printing and information facilities, including computing a full inlining stack.
       - I had to rename compiler/source-position.{h,cc} to compiler/compiler-source-position-table.{h,cc} to avoid clashes with the new src/source-position.cc file.
       - I wrote the new wrapper PodArray for ByteArray. It is a template working with any POD-type. This is used in DeoptimizationInputData::InliningPositions().
       - I removed HInlinedFunctionInfo and HGraph::inlined_function_infos, because they were only used for the now obsolete Crankshaft inlining ids.
       - Crankshaft managed a list of inlined functions in Lithium: LChunk::inlined_functions. This is an analog structure to CompilationInfo::inlined_functions. So I removed LChunk::inlined_functions and made Crankshaft use CompilationInfo::inlined_functions instead, because this was necessary to register the offsets into the literal array in a uniform way. This is a safe change because LChunk::inlined_functions has no other uses and the functions in CompilationInfo::inlined_functions have a strictly longer lifespan, being created earlier (in Hydrogen already).
      
      BUG=v8:5432
      
      Review-Url: https://codereview.chromium.org/2451853002
      Cr-Commit-Position: refs/heads/master@{#40975}
      c3a6ca68
    • ulan's avatar
      [heap] Use size_t for heap and space counters. · 71a7bca9
      ulan authored
      BUG=chromium:652721
      
      Review-Url: https://codereview.chromium.org/2490523003
      Cr-Commit-Position: refs/heads/master@{#40972}
      71a7bca9
  4. 02 Nov, 2016 1 commit
    • zhengxing.li's avatar
      X87: [compiler] Sanitize IC counts for vector based ICs. · 3ef54ed6
      zhengxing.li authored
        port 5ef1bddf (r40690)
      
        original commit message:
        All vector ICs use the TypeFeedbackVector::ComputeCounts method now,
        while the remaining patching ICs still use the traditional way of
        counting on the TypeFeedbackInfo hanging off the fullcodegen code
        object. This fixes the problem that counts were sometimes off.
      
      BUG=
      
        Drive-by-fix: Move FullCodeGenerator::CallIC to fullcodegen.cc.
      Review-Url: https://codereview.chromium.org/2470063002
      
      Cr-Commit-Position: refs/heads/master@{#40692}
      3ef54ed6
  5. 31 Oct, 2016 1 commit
  6. 27 Oct, 2016 1 commit
    • ishell's avatar
      [ic] Remove unnecessary access rights checks from the IC handlers. · 8ba4af44
      ishell authored
      The reasons are:
      1) Type feedback vectors are not shared between different native contexts and
         therefore the IC handler created for one native context will not be reused
         in other native context.
      2) Access rights revocation is not supported at all, therefore given (1) once
         we pass the access check we don't have to check access rights again.
      
      BUG=v8:5561
      
      Review-Url: https://codereview.chromium.org/2455953002
      Cr-Commit-Position: refs/heads/master@{#40627}
      8ba4af44
  7. 25 Oct, 2016 1 commit
    • jgruber's avatar
      [regexp] Remove unused code · 77ddcfb3
      jgruber authored
      This CL removes code that is now unused since the port of regexp.js has been
      completed. Removed functions / classes are:
      
      * regexp.js (GetSubstitution moved to string.js)
      * RegExpConstructResult stub
      * RegExpFlags intrinsic
      * RegExpSource intrinsic
      * RegExpInitializeAndCompile runtime function
      
      BUG=v8:5339
      
      Review-Url: https://codereview.chromium.org/2448463002
      Cr-Commit-Position: refs/heads/master@{#40547}
      77ddcfb3
  8. 20 Oct, 2016 1 commit
  9. 18 Oct, 2016 2 commits
  10. 17 Oct, 2016 1 commit
  11. 14 Oct, 2016 1 commit
    • jgruber's avatar
      [regexp] Turn last match info into a simple FixedArray · f60a7c4f
      jgruber authored
      Now that all accesses to the last match info are in C++ and TF code, we can
      finally turn the last match info into a FixedArray. Similar to the ArrayList,
      it uses its first field to store its length and grows dynamically in amortized
      O(1) time.
      
      Unlike previously, this means that the last match info pointer stored on the
      context can actually change (in case the FixedArray needs to grow).
      
      BUG=v8:5339
      
      Review-Url: https://codereview.chromium.org/2415103002
      Cr-Commit-Position: refs/heads/master@{#40308}
      f60a7c4f
  12. 13 Oct, 2016 1 commit
  13. 12 Oct, 2016 4 commits
  14. 10 Oct, 2016 1 commit
  15. 07 Oct, 2016 3 commits
  16. 29 Sep, 2016 2 commits
  17. 26 Sep, 2016 1 commit
    • hablich's avatar
      Revert of [stubs] Port SubStringStub to TurboFan (patchset #8 id:140001 of... · 10a801f1
      hablich authored
      Revert of [stubs] Port SubStringStub to TurboFan (patchset #8 id:140001 of https://codereview.chromium.org/2355793003/ )
      
      Reason for revert:
      Speculative revert because of stability problems
      
      Original issue's description:
      > [stubs] Port SubStringStub to TurboFan
      >
      > This ports the platform-specific SubStringStub to TurboFan.
      >
      > It also contains a minor bug-fix for the case when the requested substring
      > length equals the subject string length, but the start index is not equal to 0.
      > The old stub implementation returned the subject string, while the new
      > implementation calls into runtime, which finally results in a thrown exception.
      >
      > BUG=v8:5415
      >
      > Committed: https://crrev.com/49be31921536716706a6790fbbf9c346b975af16
      > Cr-Commit-Position: refs/heads/master@{#39653}
      
      TBR=ishell@chromium.org,bmeurer@chromium.org,jgruber@chromium.org
      # Not skipping CQ checks because original CL landed more than 1 days ago.
      BUG=v8:5415, chromium:649967
      NOPRESUBMIT=true
      NOTRY=true
      
      Review-Url: https://codereview.chromium.org/2365413002
      Cr-Commit-Position: refs/heads/master@{#39737}
      10a801f1
  18. 23 Sep, 2016 2 commits
    • ishell's avatar
      [ic][ia32][x87] Don't push/pop value/slot/vector in store handlers. · 49695346
      ishell authored
      According to new store IC calling convention the value, slot and vector are passed
      on the stack and there's no need in trying to preserve values or respective registers
      in store handlers.
      
      Nice bonus: we also don't need virtual registers anymore.
      
      BUG=v8:5407
      
      Review-Url: https://codereview.chromium.org/2357323003
      Cr-Commit-Position: refs/heads/master@{#39672}
      49695346
    • jgruber's avatar
      [stubs] Port SubStringStub to TurboFan · 49be3192
      jgruber authored
      This ports the platform-specific SubStringStub to TurboFan.
      
      It also contains a minor bug-fix for the case when the requested substring
      length equals the subject string length, but the start index is not equal to 0.
      The old stub implementation returned the subject string, while the new
      implementation calls into runtime, which finally results in a thrown exception.
      
      BUG=v8:5415
      
      Review-Url: https://codereview.chromium.org/2355793003
      Cr-Commit-Position: refs/heads/master@{#39653}
      49be3192
  19. 22 Sep, 2016 1 commit
  20. 21 Sep, 2016 1 commit
  21. 18 Sep, 2016 2 commits
  22. 16 Sep, 2016 1 commit
    • ishell's avatar
      [stubs] Port StoreTransitionStub and ElementsTransitionAndStoreStub to TurboFan. · 130d9893
      ishell authored
      This CL also cleans up related interface descriptors:
      1) unused StoreTransitionDescriptor is removed and VectorStoreTransitionDescriptor is
      renamed to StoreTransitionDescriptor.
      2) on ia32/x87 architectures slot and vector are passed on the stack (dispatcher/handlers
      cleanup will be addressed in a separate CL).
      
      These two stub ports have to be combined in one CL because:
      1) without changing the StoreTransitionDescriptor TF was not able to compile them
      on ia32/x87 (because of lack of registers),
      2) it was not possible to change the descriptor first because Crankshaft was not able
      to deal with the stack allocated parameters in case of a stub failure.
      
      TBR=jkummerow@chromium.org
      BUG=v8:5269
      
      Review-Url: https://codereview.chromium.org/2313093002
      Cr-Commit-Position: refs/heads/master@{#39476}
      130d9893
  23. 09 Sep, 2016 2 commits
  24. 06 Sep, 2016 1 commit
    • mlippautz's avatar
      Move kMaxRegularHeapObjectSize into globals · 059b5643
      mlippautz authored
      This way we avoid the cyclic dependency between objects.h and heap.h and still
      have one definition. Add a static assert that this size is indeed smaller than
      the payload of a page.
      
      Follow ups can finally remove the dependency on spaces.h for all heap.h users.
      
      R=ulan@chromium.org,bmeurer@chromium.org,vogelheim@chromium.og
      
      Review-Url: https://codereview.chromium.org/2311203002
      Cr-Commit-Position: refs/heads/master@{#39206}
      059b5643
  25. 04 Sep, 2016 1 commit
  26. 31 Aug, 2016 1 commit
  27. 23 Aug, 2016 1 commit
  28. 22 Aug, 2016 1 commit
  29. 17 Aug, 2016 1 commit