Skip to content

Instantly share code, notes, and snippets.

Vyacheslav Egorov mraleph

Block or report user

Report or block mraleph

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flutter.md
  1. Make a folder somewhere that will contain engine and framework checkouts. The rest of instructions assumes that $flt points to that folder.
  2. Into $flt/flutter get flutter by
    $ cd $flt
    $ git clone https://github.com/flutter/flutter
  3. Add $flt/flutter/bin to your path, run flutter doctor and fix issues if any are reported.
  4. Into $flt/engine get engine checkout following these instructions. Make sure to run dependency installation scripts as described there.
  5. In $flt/engine/src/third_party/dart switch to master and pull upto HEAD
View main.dart
Future<void> f() async {
print("f invoked");
await Future.value(10);
print("f continued");
}
Future<void> g() async {
print("g invoked");
await Future.value(10);
print("g continued");
View regress.patch
diff --git a/runtime/tests/vm/dart/regress_33999_test.dart b/runtime/tests/vm/dart/regress_33999_test.dart
index 933d2e0bef..21c3930afd 100644
--- a/runtime/tests/vm/dart/regress_33999_test.dart
+++ b/runtime/tests/vm/dart/regress_33999_test.dart
@@ -8,12 +8,14 @@
// Class with two type parameters.
class A<U, T> {
- T field;
+ T field1;
View ffi.md

Dart VM FFI Vision

Background

The aim of Dart FFI project (tracked as Issue #34452) is to provide a low boilerplate, low ceremony & low overhead way of interoperating with native C/C++ code.

The motivation behind this project is twofold:

View test.js
function createSlowObject() {
let obj = {};
for (let i = 0; i < 100; i++) {
obj['f' + i] = i;
}
return obj;
}
View crashpad.patch
diff --git a/third_party/gtest/BUILD.gn b/third_party/gtest/BUILD.gn
index db5f4a56..f47d0437 100644
--- a/third_party/gtest/BUILD.gn
+++ b/third_party/gtest/BUILD.gn
@@ -41,7 +41,7 @@ if (crashpad_is_in_chromium) {
"//third_party/googletest:gmock",
]
}
-} else if (crashpad_is_standalone) {
+} else if (crashpad_is_external || crashpad_is_standalone) {
View test.md
  1. Make a folder somewhere that will contain engine and framework checkouts. The rest of instructions assumes that $flt points to that folder.
  2. Into $flt/flutter get flutter by
    $ cd $flt
    $ git clone https://github.com/flutter/flutter
  3. Add $flt/flutter/bin to your path, run flutter doctor and fix issues if any are reported.
  4. Into $flt/engine get engine checkout following these instructions. Make sure to run dependency installation scripts as described there.
  5. In $flt/engine/src/third_party/dart switch to master and pull upto HEAD
View proposal.md

Background: How we handle mismatched closure invocations

Closures (unlike other methods) can be invoked with mismatched arguments, which then should result in Object.noSuchMethod invocation.

We implement it by tail-calling to the CallClosureNoSuchMethod stub if we discover an arity mismatch or a unmatched named argument. The stub gets original arguments and original argument descriptor and simply redirects to runtime function InvokeClosureNoSuchMethod which does all the heavy lifting related to

@mraleph
mraleph / code.asm
Created Feb 18, 2018
charCodeAt lowering
View code.asm
--- Raw source ---
(str, i) {
return str.charCodeAt(i);
}
--- Optimized code ---
optimization_id = 0
source_position = 14
kind = OPTIMIZED_FUNCTION
View preview-dart-2-tests.log
This file has been truncated, but you can view the full file.
⏩ 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
You can’t perform that action at this time.