Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: runtime/include/dart_api.h

Issue 2933603002: 1. Dynamic compute the main closure that needs to be run by the main isolate (Closed)
Patch Set: Address review comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef RUNTIME_INCLUDE_DART_API_H_ 7 #ifndef RUNTIME_INCLUDE_DART_API_H_
8 #define RUNTIME_INCLUDE_DART_API_H_ 8 #define RUNTIME_INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 /** 1604 /**
1605 * Gets the value of a Double 1605 * Gets the value of a Double
1606 * 1606 *
1607 * \param double_obj A Double 1607 * \param double_obj A Double
1608 * \param value Returns the value of the Double. 1608 * \param value Returns the value of the Double.
1609 * 1609 *
1610 * \return A valid handle if no error occurs during the operation. 1610 * \return A valid handle if no error occurs during the operation.
1611 */ 1611 */
1612 DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value); 1612 DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value);
1613 1613
1614 /**
1615 * Returns a closure of top level function 'function_name' in the exported
1616 * namespace of specified 'library'. If a top level function 'function_name'
1617 * does not exist, looks for a top level getter 'function_name' and invokes
1618 * it and returns the object returned by the getter.
1619 *
1620 * \param library Library object
1621 * \param function_name Name of the top level function
1622 *
1623 * \return A valid Dart instance if no error occurs during the operation.
1624 */
1625 DART_EXPORT Dart_Handle Dart_GetClosure(Dart_Handle library,
1626 Dart_Handle function_name);
1627
1614 1628
1615 /* 1629 /*
1616 * ======== 1630 * ========
1617 * Booleans 1631 * Booleans
1618 * ======== 1632 * ========
1619 */ 1633 */
1620 1634
1621 /** 1635 /**
1622 * Returns the True object. 1636 * Returns the True object.
1623 * 1637 *
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
3378 */ 3392 */
3379 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3393 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3380 3394
3381 3395
3382 /** 3396 /**
3383 * Print a native stack trace. Used for crash handling. 3397 * Print a native stack trace. Used for crash handling.
3384 */ 3398 */
3385 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3399 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3386 3400
3387 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3401 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/tests/vm/vm.status » ('j') | tests/co19/co19-kernel.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698