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

Side by Side Diff: Source/bindings/core/dart/DartController.cpp

Issue 1698383002: Fix compilation error Dart_Initialize has a new parameter (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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 | Annotate | Revision Log
« 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 // 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
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
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 }
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