Skip to content

Instantly share code, notes, and snippets.

@hashseed
hashseed / gist:8ee8fe7a5c491cff13c62292ae298fcc
Created January 29, 2019 09:01
test/parallel/test-trace-events-dynamic-enable-workers-disabled.js failure
$ gdb -args out/node node/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
(gdb) break api.cc:460
Breakpoint 1 at 0x26b7469: file ../v8/src/api.cc, line 460.
(gdb) r
Starting program: /usr/local/google/home/yangguo/gn-node/src/out/node node/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7f05d162b700 (LWP 76014)]
[New Thread 0x7f05d0e2a700 (LWP 76015)]
[New Thread 0x7f05cbfff700 (LWP 76016)]
function rgbToHsl(r, g, b) {
r /= 255, g /= 255, b /= 255;
var max = Math.max(r, g, b),
min = Math.min(r, g, b);
var h, s, l = (max + min) / 2;
if (max == min) {
h = s = 0; // achromatic
} else {
var d = max - min;
[{"ts":3.0885000000707805,"k":"H"},{"ts":3.207700000028126,"k":"e"},{"ts":3.3682000000262633,"k":" "},{"ts":3.487900000065565,"k":"h"},{"ts":3.6079000000609085,"k":"a"},{"ts":3.7041000000899658,"k":"t"},{"ts":3.791800000006333,"k":"e"},{"ts":3.9520000000484288,"k":"d"},{"ts":4.063800000003539,"k":" "},{"ts":4.18370000005234,"k":"t"},{"ts":4.279600000008941,"k":"o"},{"ts":4.359700000029989,"k":" "},{"ts":4.488200000021607,"k":"b"},{"ts":4.5678000000771135,"k":"e"},{"ts":4.663700000033714,"k":" "},{"ts":4.847600000095554,"k":"s"},{"ts":4.912200000020675,"k":"e"},{"ts":5.0881000000517815,"k":"p"},{"ts":5.175800000084564,"k":"a"},{"ts":5.2557000000961125,"k":"r"},{"ts":5.423700000043027,"k":"t"},{"ts":5.495800000033341,"k":"e"},{"ts":6.576000000000931,"k":"a"},{"ts":6.783800000092015,"k":"r"},{"ts":7.34429999999702,"k":"t"},{"ts":7.409700000076555,"k":"e"},{"ts":7.575799999991432,"k":"d"},{"ts":7.663700000033714,"k":" "},{"ts":7.807700000004843,"k":"f"},{"ts":7.879700000048615,"k":"r"},{"ts":7.9196000000229105,"k
@hashseed
hashseed / gist:c8eaa6513f6b4309d89350b12dfa8377
Last active February 19, 2018 14:26
verify that WeakMap works.
[2018-02-19 15:22:01] yangguo@yangguo2:~/v8$ g out.gn/x64.debug/d8 --expose-gc --allow-natives-syntax
GNU gdb (GDB) 7.9-gg19
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-grtev4-linux-gnu".
Type "show configuration" for configuration details.
@hashseed
hashseed / gist:074be0c9c2889813ad92f95bdef266c7
Created January 15, 2018 14:06
V8 ABI checking build config patch
diff --git a/BUILD.gn b/BUILD.gn
index 98e035fc6a..161e81a183 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -568,6 +568,10 @@ config("v8_gcov_coverage_ldflags") {
ldflags = [ "-fprofile-arcs" ]
}
+config("v8_dump") {
+ cflags = [ "-Og", "-g" ]