1. 10 May, 2019 1 commit
  2. 03 May, 2018 1 commit
  3. 14 Feb, 2018 1 commit
  4. 19 Dec, 2017 1 commit
  5. 15 Sep, 2017 1 commit
  6. 22 Jun, 2017 1 commit
    • Clemens Hammacher's avatar
      [cleanup] extern "C" not needed for V8_Fatal · 696f31ba
      Clemens Hammacher authored
      Why I want to fix this: I got a CL to replace V8_NORETURN by
      [[noreturn]], but clang-format formats this as
        extern "C"[[noreturn]] PRINT_FORMAT...
      (i.e. missing whitespace).
      Also, this is the only extern "C" function in our code base, so if we
      do not need to call it from C, we should just get rid of it.
      
      R=jochen@chromium.org
      BUG=v8:6474
      
      Change-Id: I950bdc505822eb37a107c58e63c82a61907ba515
      Reviewed-on: https://chromium-review.googlesource.com/539341Reviewed-by: 's avatarJochen Eisinger <jochen@chromium.org>
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46149}
      696f31ba
  7. 31 May, 2017 1 commit
    • Clemens Hammacher's avatar
      [logging] Print const char* as pointer value · 63c4cd96
      Clemens Hammacher authored
      When checking {const char*} (or similar) against each other, don't
      print them as c strings on failure. Just print the pointer value.
      In wasm, where we use byte pointers into wasm wire bytes, this was
      sometimes hiding check failures behind segfaults which happened when
      trying to output invalid pointers as c strings.
      Anyway, it's more useful to see the raw pointer values in these cases.
      Other use cases, where we really compare against c string pointers
      should be rare in our code base.
      
      R=ishell@chromium.org
      
      Change-Id: I92a13221d18c987a97cf2a29ac8f454178ff2bb5
      Reviewed-on: https://chromium-review.googlesource.com/517166
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#45642}
      63c4cd96
  8. 30 May, 2017 1 commit
  9. 11 Apr, 2017 1 commit
    • kmackay's avatar
      Add some missing stdarg includes · f7e76cde
      kmackay authored
      One of our internal Chromecast builds was failing due to undefined
      va_list in wasm-result.h. I also searched for other files where va_list
      was used without including stdarg.h and added it as necessary (since
      include-what-you-use is a thing).
      
      BUG=chromium:706443
      
      Review-Url: https://codereview.chromium.org/2780913002
      Cr-Commit-Position: refs/heads/master@{#44588}
      f7e76cde
  10. 17 Mar, 2017 1 commit
  11. 29 Nov, 2016 1 commit
  12. 24 Nov, 2016 2 commits
    • clemensh's avatar
      Revert of [base] Pass scalar arguments by value in CHECK/DCHECK (patchset #3... · 29ee6244
      clemensh authored
      Revert of [base] Pass scalar arguments by value in CHECK/DCHECK (patchset #3 id:40001 of https://codereview.chromium.org/2524093002/ )
      
      Reason for revert:
      Seems to cause compile errors on Android. Will investigate on Monday.
      
      Original issue's description:
      > [base] Pass scalar arguments by value in CHECK/DCHECK
      >
      > This not only potentially improves performance, but also avoids weird
      > linker errors, like the one below, where I used Smi::kMinValue in a
      > DCHECK_EQ.
      >
      > > [421/649] LINK ./mksnapshot
      > > FAILED: mksnapshot
      > > src/base/logging.h|178| error: undefined reference to
      >   'v8::internal::Smi::kMinValue'
      >
      > R=bmeurer@chromium.org, ishell@chromium.org
      >
      > Committed: https://crrev.com/76723502528c5af003fdffc3520632ea2a13fef3
      > Cr-Commit-Position: refs/heads/master@{#41273}
      
      TBR=bmeurer@chromium.org,ishell@chromium.org
      # Skipping CQ checks because original CL landed less than 1 days ago.
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      
      Review-Url: https://codereview.chromium.org/2527883004
      Cr-Commit-Position: refs/heads/master@{#41278}
      29ee6244
    • clemensh's avatar
      [base] Pass scalar arguments by value in CHECK/DCHECK · 76723502
      clemensh authored
      This not only potentially improves performance, but also avoids weird
      linker errors, like the one below, where I used Smi::kMinValue in a
      DCHECK_EQ.
      
      > [421/649] LINK ./mksnapshot
      > FAILED: mksnapshot
      > src/base/logging.h|178| error: undefined reference to
        'v8::internal::Smi::kMinValue'
      
      R=bmeurer@chromium.org, ishell@chromium.org
      
      Review-Url: https://codereview.chromium.org/2524093002
      Cr-Commit-Position: refs/heads/master@{#41273}
      76723502
  13. 18 Aug, 2016 1 commit
    • rmcilroy's avatar
      Replace DumpBacktrace with Chromium's StackTrace implementation. · 49c14f63
      rmcilroy authored
      Adds support for dumping the stack on Windows. Also enables in-process
      stack dumping in d8 to dump the stack on exceptions and signals.
      
      This CL changes the format of stack dumps from:
       1: V8_Fatal
       2: 0x1ac6ba5
       3: v8::internal::interpreter::BytecodeGenerator::Visit(v8::internal::AstNode*)
       4: v8::internal::interpreter::BytecodeGenerator::VisitForAccumulatorValue(v8::internal::Expression*)
       ...
      
      To:
        ./out/x64.debug/d8(v8::base::debug::StackTrace::StackTrace()+0x1e) [0x1c6ee5e]
        ./out/x64.debug/d8() [0x1c6ede5]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7fa01193e330]
        ./out/x64.debug/d8(v8::base::OS::Abort()+0x12) [0x1c6cea2]
        ./out/x64.debug/d8() [0x1c67538]
        ./out/x64.debug/d8() [0x1ac80b5]
        ./out/x64.debug/d8(v8::internal::interpreter::BytecodeGenerator
      ::Visit(v8::internal::AstNode*)+0x3cb) [0x1ac323b]
        ./out/x64.debug/d8(v8::internal::interpreter::BytecodeGenerator
      ::VisitForAccumulatorValue(v8::internal::Expression*)+0x40) [0x1ac2570]
      
      Review-Url: https://codereview.chromium.org/2248393002
      Cr-Commit-Position: refs/heads/master@{#38717}
      49c14f63
  14. 13 Jul, 2016 1 commit
    • mstarzinger's avatar
      [runtime] Fully remove RUNTIME_ASSERT for good. · 04062e92
      mstarzinger authored
      This fully deprecates all uses of the RUNTIME_ASSERT macro and removes
      the macro and underlying logging function in question. All uses have
      been replaces with CHECK macros which crash safely even in production.
      
      It makes sure we discover abuse of runtime functions in the wild early
      and also abort the process safely. Breaking assumptions in any runtime
      function can no longer accidentally be caught by JavaScript.
      
      R=yangguo@chromium.org
      BUG=v8:5066
      
      Review-Url: https://codereview.chromium.org/2132493002
      Cr-Commit-Position: refs/heads/master@{#37704}
      04062e92
  15. 01 Mar, 2016 1 commit
    • littledan's avatar
      Make RUNTIME_ASSERT have more useful output in debug mode · 78d84530
      littledan authored
      Runtime asserts are were previously a bit annoying to debug, due to
      the lack of a useful error message, even in debug mode. This patch
      prints out some more information in debug mode for runtime assert
      failures while preserving their exception-throwing semantics. While
      we're at it, it requires a semicolon after RUNTIME_ASSERT macro
      invocations.
      
      ```
      $ rlwrap out/Debug/d8 --allow-natives-syntax
      V8 version 5.1.0 (candidate)
      d8> %ArrayBufferNeuter(1)
      
      #
      # Runtime error in ../../src/runtime/runtime-typedarray.cc, line 52
      #
      # args[0]->IsJSArrayBuffer()
      
      ==== C stack trace ===============================
      
       1: 0xf70ab5
       2: 0xadeebf
       3: 0xadedd4
       4: 0x2ef17630693b
      (d8):1: illegal access
      %ArrayBufferNeuter(1)
      ^
      
      d8>
      ```
      
      Also give the other 'illegal access' case (a special SyntaxError type) a more
      descriptive error message for its sole usage.
      
      R=adamk
      
      Review URL: https://codereview.chromium.org/1748183002
      
      Cr-Commit-Position: refs/heads/master@{#34401}
      78d84530
  16. 19 Mar, 2015 1 commit
    • jochen's avatar
      Use libdl to get symbols for backtraces · 84363499
      jochen authored
      With this patch, it'll look like this:
      
      $ out/x64.optdebug/d8 --expose-trigger-failure test/mjsunit/mjsunit.js test/mjsunit/verify-assert-false.js
      
      ==== C stack trace ===============================
      
       1: V8_Fatal
       2: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
       3: 0x727ced
       4: 0x72b6ba
       5: 0x188c7f607f9b
      
      BUG=none
      R=svenpanne@chromium.org
      LOG=y
      
      Review URL: https://codereview.chromium.org/1018313003
      
      Cr-Commit-Position: refs/heads/master@{#27318}
      84363499
  17. 30 Jan, 2015 3 commits
  18. 26 Aug, 2014 1 commit
  19. 30 Jun, 2014 1 commit
  20. 03 Jun, 2014 1 commit
  21. 29 Apr, 2014 1 commit
  22. 15 Apr, 2014 1 commit
  23. 17 Mar, 2014 1 commit
  24. 14 Jan, 2014 1 commit
  25. 02 Jan, 2014 1 commit
  26. 22 Nov, 2013 1 commit
  27. 25 Oct, 2013 1 commit
  28. 23 Sep, 2013 1 commit
  29. 11 Sep, 2013 1 commit
  30. 03 Jun, 2013 1 commit
  31. 21 May, 2013 1 commit
  32. 14 Dec, 2012 1 commit
  33. 18 Mar, 2011 3 commits
  34. 24 Nov, 2010 1 commit
  35. 05 Nov, 2010 1 commit