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

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

Issue 2490003002: Fix mac build (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2428 matching lines...) Expand 10 before | Expand all | Expand 10 after
2439 enum { 2439 enum {
2440 kNativeArgNumberPos = 0, 2440 kNativeArgNumberPos = 0,
2441 kNativeArgNumberSize = 8, 2441 kNativeArgNumberSize = 8,
2442 kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize, 2442 kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize,
2443 kNativeArgTypeSize = 8, 2443 kNativeArgTypeSize = 8,
2444 }; 2444 };
2445 2445
2446 #define BITMASK(size) ((1 << size) - 1) 2446 #define BITMASK(size) ((1 << size) - 1)
2447 #define DART_NATIVE_ARG_DESCRIPTOR(type, position) \ 2447 #define DART_NATIVE_ARG_DESCRIPTOR(type, position) \
2448 (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \ 2448 (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \
2449 (position & BITMASK(kNativeArgNumberSize))) // NOLINT 2449 (position & BITMASK(kNativeArgNumberSize)))
2450 2450
2451 /** 2451 /**
2452 * Gets the native arguments based on the types passed in and populates 2452 * Gets the native arguments based on the types passed in and populates
2453 * the passed arguments buffer with appropriate native values. 2453 * the passed arguments buffer with appropriate native values.
2454 * 2454 *
2455 * \param args the Native arguments block passed into the native call. 2455 * \param args the Native arguments block passed into the native call.
2456 * \param num_arguments length of argument descriptor array and argument 2456 * \param num_arguments length of argument descriptor array and argument
2457 * values array passed in. 2457 * values array passed in.
2458 * \param arg_descriptors an array that describes the arguments that 2458 * \param arg_descriptors an array that describes the arguments that
2459 * need to be retrieved. For each argument to be retrieved the descriptor 2459 * need to be retrieved. For each argument to be retrieved the descriptor
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
3200 3200
3201 3201
3202 /** 3202 /**
3203 * Returns whether the VM only supports running from precompiled snapshots and 3203 * Returns whether the VM only supports running from precompiled snapshots and
3204 * not from any other kind of snapshot or from source (that is, the VM was 3204 * not from any other kind of snapshot or from source (that is, the VM was
3205 * compiled with DART_PRECOMPILED_RUNTIME). 3205 * compiled with DART_PRECOMPILED_RUNTIME).
3206 */ 3206 */
3207 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3207 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3208 3208
3209 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3209 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698