1. 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
  2. 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
  3. 30 Jan, 2015 3 commits
  4. 26 Aug, 2014 1 commit
  5. 30 Jun, 2014 1 commit
  6. 03 Jun, 2014 1 commit
  7. 29 Apr, 2014 1 commit
  8. 15 Apr, 2014 1 commit
  9. 17 Mar, 2014 1 commit
  10. 14 Jan, 2014 1 commit
  11. 02 Jan, 2014 1 commit
  12. 22 Nov, 2013 1 commit
  13. 25 Oct, 2013 1 commit
  14. 23 Sep, 2013 1 commit
  15. 11 Sep, 2013 1 commit
  16. 03 Jun, 2013 1 commit
  17. 21 May, 2013 1 commit
  18. 14 Dec, 2012 1 commit
  19. 18 Mar, 2011 3 commits
  20. 24 Nov, 2010 1 commit
  21. 05 Nov, 2010 1 commit
  22. 16 Nov, 2009 1 commit
  23. 02 Mar, 2009 1 commit
  24. 12 Sep, 2008 1 commit
  25. 10 Sep, 2008 1 commit
  26. 09 Sep, 2008 1 commit
  27. 03 Jul, 2008 1 commit