Skip to content

Instantly share code, notes, and snippets.

View dcharkes's full-sized avatar

Daco Harkes dcharkes

View GitHub Profile
@dcharkes
dcharkes / dart_api_dl.h
Created December 8, 2021 10:53
Standalone dart_api_dl.h
/*
* Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
#ifndef RUNTIME_INCLUDE_DART_API_DL_H_
#define RUNTIME_INCLUDE_DART_API_DL_H_
#ifndef __STDC_FORMAT_MACROS
{
"dart.analysisExcludedFolders": [
"benchmarks",
"benchmarks-internal",
"docs/newsletter/20171103",
"pkg/analysis_server",
"pkg/analysis_server_client",
"pkg/analysis_tool",
"pkg/analyzer",
"pkg/analyzer_cli",
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// ============================================================================
// Already existing definitions in dart:ffi.
// ============================================================================
class NativeType {
const NativeType();
$ clang -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ test.c && ./a.out
int : 4
unsigned int : 4
long : 8
unsigned long : 8
size_t : 8
ssize_t : 8
off_t : 8
wchar_t : 4
*** BEGIN CFG
After TryOptimizePatterns
==== dart:core_Object_==
B0[graph]:0 {
v228 <- Constant(#null)
v229 <- Constant(#<optimized out>)
v238 <- Constant(#true) T{bool}
}
B51[function entry]:2 {
$ flutter build ios -v
[ +22 ms] executing: [/Users/dacoharkes/flt/engine/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +30 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 854f92d7be60fe5b89539a3d43d47468f2833c5c
[ ] executing: [/Users/dacoharkes/flt/engine/flutter/] git describe --match v*.*.*
--first-parent --long --tags
[ +17 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.13.0-49-g854f92d7be
[ +7 ms] executing: [/Users/dacoharkes/flt/engine/flutter/] git rev-parse --abbrev-ref --symbolic
--> E (output): {"event":"output","body":{"category":"console","output":"1: (102) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'\n"},"seq":2,"type":"event"}
1: (102) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (108) LaunchOptions ExePath='/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugAndroidARM64/dart'\n"},"seq":4,"type":"event"}
1: (108) LaunchOptions ExePath='/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugAndroidARM64/dart'
--> E (output): {"event":"output","body":{"category":"console","output":"1: (109) LaunchOptions WorkingDirectory='/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugAndroidARM64'\n"},"seq":6,"type":"event"}
1: (109) LaunchOptions WorkingDirectory='/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugAndroidARM64'
--> E (output): {"event":"output","body":{"category":"conso
commit 7a971789b9407e65bd38d49b7f0335a7737bcf76
Author: Daco Harkes <dacoharkes@google.com>
Date: Wed May 22 14:33:33 2019 +0200
disable profiling mac
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 16abbaa396..84e7bb7b88 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
Row configuration result count earliest latest  
1 analyzer-asserts-linux Pass 1100 2018-12-07 15:51:28 UTC 2019-02-22 02:23:45 UTC  
2 analyzer-asserts-mac Pass 855 2018-12-07 13:19:24 UTC 2019-02-22 02:23:45 UTC  
3 analyzer-asserts-win Pass 989 2018-12-07 15:51:28 UTC 2019-02-22 02:23:45 UTC  
4 analyzer-linux Pass 1198 2018-12-07 15:51:28 UTC 2019-02-22 02:23:45 UTC  
5 app_jitk-linux-debug-x64 Pass 7 2019-02-21 22:48:10 UTC 2019-02-22 02:23:45 UTC  
6 app_jitk-linux-debug-x64 RuntimeError 678 2018-12-07 13:19:24 UTC 2019-02-21 21:23:19 UTC  
7 app_jitk-linux-product-x64 Pass 10 2019-02-21 22:39:39 UTC 2019-02-22 02:23:45 UTC