OLD | NEW |
1 // Copyright (c) 2009, Google Inc. | 1 // Copyright (c) 2009, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 int propLen = DartUtilities::getProp( | 690 int propLen = DartUtilities::getProp( |
691 "DART_FLAGS", flagsProp, DartUtilities::PROP_VALUE_MAX_LEN); | 691 "DART_FLAGS", flagsProp, DartUtilities::PROP_VALUE_MAX_LEN); |
692 if (propLen > 0) { | 692 if (propLen > 0) { |
693 setDartFlags(flagsProp, checked); | 693 setDartFlags(flagsProp, checked); |
694 } else { | 694 } else { |
695 setDartFlags(0, checked); | 695 setDartFlags(0, checked); |
696 } | 696 } |
697 | 697 |
698 DartService::Bootstrap(); | 698 DartService::Bootstrap(); |
699 // FIXME(antonm): implement proper unhandled exception callback. | 699 // FIXME(antonm): implement proper unhandled exception callback. |
700 Dart_Initialize(DartUtilities::vmIsolateSnapshot(), 0, &createPureIsolateCal
lback, 0, 0, 0, openFileCallback, readFileCallback, writeFileCallback, closeFile
Callback, generateEntropy, GetVMServiceAssetsArchiveCallback); | 700 Dart_Initialize(DartUtilities::vmIsolateSnapshot(), 0, 0, &createPureIsolate
Callback, 0, 0, 0, openFileCallback, readFileCallback, writeFileCallback, closeF
ileCallback, generateEntropy, GetVMServiceAssetsArchiveCallback); |
701 } | 701 } |
702 | 702 |
703 static bool checkForExpiration() | 703 static bool checkForExpiration() |
704 { | 704 { |
705 const time_t ExpirationTimeSecsSinceEpoch = | 705 const time_t ExpirationTimeSecsSinceEpoch = |
706 #include "bindings/dart/ExpirationTimeSecsSinceEpoch.time_t" | 706 #include "bindings/dart/ExpirationTimeSecsSinceEpoch.time_t" |
707 ; | 707 ; |
708 const char* override = getenv("DARTIUM_EXPIRATION_TIME"); | 708 const char* override = getenv("DARTIUM_EXPIRATION_TIME"); |
709 time_t expiration; | 709 time_t expiration; |
710 if (override) { | 710 if (override) { |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 Dart_ExitIsolate(); | 1051 Dart_ExitIsolate(); |
1052 loader->processSingleRequest(isolate, url, callback); | 1052 loader->processSingleRequest(isolate, url, callback); |
1053 | 1053 |
1054 // Restore caller isolate. | 1054 // Restore caller isolate. |
1055 Dart_EnterIsolate(caller); | 1055 Dart_EnterIsolate(caller); |
1056 | 1056 |
1057 // FIXME: We need some way to return a Dart_Handle to the isolate we just cr
eated. | 1057 // FIXME: We need some way to return a Dart_Handle to the isolate we just cr
eated. |
1058 } | 1058 } |
1059 | 1059 |
1060 } | 1060 } |
OLD | NEW |