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

Side by Side Diff: runtime/lib/isolate.cc

Issue 11028145: Changed StackZone and ApiZone to be containers for Zone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor tweak to use RawError instead of RawObject. Created 8 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 | « no previous file | runtime/lib/regexp_jsc.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bootstrap_natives.h" 6 #include "vm/bootstrap_natives.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/dart.h" 8 #include "vm/dart.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 args.Add(&message); 161 args.Add(&message);
162 Exceptions::ThrowByType(Exceptions::kIsolateSpawn, args); 162 Exceptions::ThrowByType(Exceptions::kIsolateSpawn, args);
163 } 163 }
164 164
165 165
166 static bool CanonicalizeUri(Isolate* isolate, 166 static bool CanonicalizeUri(Isolate* isolate,
167 const Library& library, 167 const Library& library,
168 const String& uri, 168 const String& uri,
169 char** canonical_uri, 169 char** canonical_uri,
170 char** error) { 170 char** error) {
171 StackZone* zone = isolate->current_zone(); 171 Zone* zone = isolate->current_zone();
172 Dart_LibraryTagHandler handler = isolate->library_tag_handler(); 172 Dart_LibraryTagHandler handler = isolate->library_tag_handler();
173 if (handler == NULL) { 173 if (handler == NULL) {
174 *error = zone->PrintToString( 174 *error = zone->PrintToString(
175 "Unable to canonicalize uri '%s': no library tag handler found.", 175 "Unable to canonicalize uri '%s': no library tag handler found.",
176 uri.ToCString()); 176 uri.ToCString());
177 return false; 177 return false;
178 } 178 }
179 Dart_Handle result = handler(kCanonicalizeUrl, 179 Dart_Handle result = handler(kCanonicalizeUrl,
180 Api::NewHandle(isolate, library.raw()), 180 Api::NewHandle(isolate, library.raw()),
181 Api::NewHandle(isolate, uri.raw())); 181 Api::NewHandle(isolate, uri.raw()));
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 DEFINE_NATIVE_ENTRY(isolate_getPortInternal, 0) { 448 DEFINE_NATIVE_ENTRY(isolate_getPortInternal, 0) {
449 const Object& port = Object::Handle(ReceivePortCreate(isolate->main_port())); 449 const Object& port = Object::Handle(ReceivePortCreate(isolate->main_port()));
450 if (port.IsError()) { 450 if (port.IsError()) {
451 Exceptions::PropagateError(Error::Cast(port)); 451 Exceptions::PropagateError(Error::Cast(port));
452 } 452 }
453 return port.raw(); 453 return port.raw();
454 } 454 }
455 455
456 } // namespace dart 456 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/regexp_jsc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698