╭─ ~/src/node ‹master*›
╰─$ alias nodeir='node --trace-turbo \
--trace-phase=Z \
--trace-deopt \
--code-comments \
--hydrogen-track-positions \
--redirect-code-traces \
--print-opt-code'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Raw source --- | |
(str, i) { | |
return str.charCodeAt(i); | |
} | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 14 | |
kind = OPTIMIZED_FUNCTION |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/fail_test.dart | |
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/pass_test.dart | |
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/crash1_test.dart | |
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/crash2_test.dart | |
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/syntax_error_test.broken_dart | |
⏩ RUNNING: cd dev/automated_tests; ../../bin/flutter test --local-engine=host_debug --preview-dart-2 test_smoke_test/missing_import_test.broken_dart | |
⏩ RUNNING: cd packages/flutter_driver; ../../bin/flutter drive --use-existing-app -t test_driver/failure.dart | |
⏩ RUNNING: cd packages/flutter; ../../bin/flutter test --local-engine=host_debug --pre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class B { | |
} | |
class C extends B { | |
bool c; | |
} | |
abstract class Base<T extends B> { | |
T get f => null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __ f+= | |
struct Bind { | |
Bind(BlockEntryInstr* block) : block(block) { } | |
BlockEntryInstr* block; | |
} | |
Fragment operator + (const Fragment& f, const Bind& bind) { | |
return Fragment(f.entry, bind.block); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰─$ lua /tmp/x.lua | |
true I yielded | |
I resumed | |
true I am done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Raw source --- | |
(arr) { | |
var res = 0; | |
for (var i = 0; i < arr.length; i++) { | |
res ^= arr[i]; | |
} | |
return res; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Nothing { const Nothing(); } | |
class Pipeable { | |
var value = const Nothing(); | |
operator |(f) { | |
if (f == const Nothing()) { | |
return value; | |
} else if (value == const Nothing()) { | |
value = f(); | |
} else { | |
value = f(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc | |
index e681f034b8..09760e7df8 100644 | |
--- a/runtime/bin/platform_linux.cc | |
+++ b/runtime/bin/platform_linux.cc | |
@@ -50,18 +50,18 @@ bool Platform::Initialize() { | |
perror("sigaddset() failed"); | |
return false; | |
} | |
- if (sigaction(SIGSEGV, &act, NULL) != 0) { | |
- perror("sigaction() failed."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library mirrors.src.decode; | |
import 'dart:mirrors' as mirrors; | |
import 'dart:convert'; | |
/// Create an object of the given type [t] from the given JSON string. | |
decode(String json, Type t) { | |
// Get deserialization descriptor for the given type. | |
// This descriptor describes how to handle the type and all its fields. | |
final TypeDesc desc = getDesc(t); |