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

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

Issue 2728163002: VM: Make use_osr an Isolate flag, similar to how we made use_field_guards. (Closed)
Patch Set: 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/code_generator.cc » ('j') | runtime/vm/dart.cc » ('J')
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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 613
614 #define DART_FLAGS_CURRENT_VERSION (0x00000002) 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 bool use_field_guards;
623 bool use_osr;
623 } Dart_IsolateFlags; 624 } Dart_IsolateFlags;
624 625
625 /** 626 /**
626 * An isolate creation and initialization callback function. 627 * An isolate creation and initialization callback function.
627 * 628 *
628 * This callback, provided by the embedder, is called when the vm 629 * This callback, provided by the embedder, is called when the vm
629 * needs to create an isolate. The callback should create an isolate 630 * needs to create an isolate. The callback should create an isolate
630 * by calling Dart_CreateIsolate and load any scripts required for 631 * by calling Dart_CreateIsolate and load any scripts required for
631 * execution. 632 * execution.
632 * 633 *
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3342 */ 3343 */
3343 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3344 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3344 3345
3345 3346
3346 /** 3347 /**
3347 * Print a native stack trace. Used for crash handling. 3348 * Print a native stack trace. Used for crash handling.
3348 */ 3349 */
3349 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3350 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3350 3351
3351 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3352 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/dart.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698