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

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

Issue 2715213008: VM: Allow configuring use_field_guards on the per-isolate basis and include it into snapshot featur… (Closed)
Patch Set: Done Created 3 years, 9 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
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.cc » ('j') | 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 605
606 /** 606 /**
607 * Isolate specific flags are set when creating a new isolate using the 607 * Isolate specific flags are set when creating a new isolate using the
608 * Dart_IsolateFlags structure. 608 * Dart_IsolateFlags structure.
609 * 609 *
610 * Current version of flags is encoded in a 32-bit integer with 16 bits used 610 * Current version of flags is encoded in a 32-bit integer with 16 bits used
611 * for each part. 611 * for each part.
612 */ 612 */
613 613
614 #define DART_FLAGS_CURRENT_VERSION (0x00000001) 614 #define DART_FLAGS_CURRENT_VERSION (0x00000002)
615 615
616 typedef struct { 616 typedef struct {
617 int32_t version; 617 int32_t version;
618 bool enable_type_checks; 618 bool enable_type_checks;
619 bool enable_asserts; 619 bool enable_asserts;
620 bool enable_error_on_bad_type; 620 bool enable_error_on_bad_type;
621 bool enable_error_on_bad_override; 621 bool enable_error_on_bad_override;
622 bool use_field_guards;
622 } Dart_IsolateFlags; 623 } Dart_IsolateFlags;
623 624
624 /** 625 /**
625 * An isolate creation and initialization callback function. 626 * An isolate creation and initialization callback function.
626 * 627 *
627 * This callback, provided by the embedder, is called when the vm 628 * This callback, provided by the embedder, is called when the vm
628 * needs to create an isolate. The callback should create an isolate 629 * needs to create an isolate. The callback should create an isolate
629 * by calling Dart_CreateIsolate and load any scripts required for 630 * by calling Dart_CreateIsolate and load any scripts required for
630 * execution. 631 * execution.
631 * 632 *
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 */ 3342 */
3342 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3343 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3343 3344
3344 3345
3345 /** 3346 /**
3346 * Print a native stack trace. Used for crash handling. 3347 * Print a native stack trace. Used for crash handling.
3347 */ 3348 */
3348 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3349 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3349 3350
3350 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3351 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698