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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 24785002: Fix 13594. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after
4213 CHECK_CALLBACK_STATE(isolate); 4213 CHECK_CALLBACK_STATE(isolate);
4214 4214
4215 const Script& script = Script::Handle( 4215 const Script& script = Script::Handle(
4216 isolate, Script::New(url_str, source_str, RawScript::kSourceTag)); 4216 isolate, Script::New(url_str, source_str, RawScript::kSourceTag));
4217 Dart_Handle result; 4217 Dart_Handle result;
4218 CompileSource(isolate, lib, script, &result); 4218 CompileSource(isolate, lib, script, &result);
4219 return result; 4219 return result;
4220 } 4220 }
4221 4221
4222 4222
4223 DART_EXPORT Dart_Handle Dart_LoadPatch(Dart_Handle library, 4223 DART_EXPORT Dart_Handle Dart_LibraryLoadPatch(Dart_Handle library,
4224 Dart_Handle url, 4224 Dart_Handle url,
4225 Dart_Handle patch_source) { 4225 Dart_Handle patch_source) {
4226 TIMERSCOPE(time_script_loading); 4226 TIMERSCOPE(time_script_loading);
4227 Isolate* isolate = Isolate::Current(); 4227 Isolate* isolate = Isolate::Current();
4228 DARTSCOPE(isolate); 4228 DARTSCOPE(isolate);
4229 const Library& lib = Api::UnwrapLibraryHandle(isolate, library); 4229 const Library& lib = Api::UnwrapLibraryHandle(isolate, library);
4230 if (lib.IsNull()) { 4230 if (lib.IsNull()) {
4231 RETURN_TYPE_ERROR(isolate, library, Library); 4231 RETURN_TYPE_ERROR(isolate, library, Library);
4232 } 4232 }
4233 const String& url_str = Api::UnwrapStringHandle(isolate, url); 4233 const String& url_str = Api::UnwrapStringHandle(isolate, url);
4234 if (url_str.IsNull()) { 4234 if (url_str.IsNull()) {
4235 RETURN_TYPE_ERROR(isolate, url, String); 4235 RETURN_TYPE_ERROR(isolate, url, String);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
4296 } 4296 }
4297 { 4297 {
4298 NoGCScope no_gc; 4298 NoGCScope no_gc;
4299 RawObject* raw_obj = obj.raw(); 4299 RawObject* raw_obj = obj.raw();
4300 isolate->heap()->SetPeer(raw_obj, peer); 4300 isolate->heap()->SetPeer(raw_obj, peer);
4301 } 4301 }
4302 return Api::Success(); 4302 return Api::Success();
4303 } 4303 }
4304 4304
4305 } // namespace dart 4305 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698