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

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

Issue 139043003: - Address warnings about 64-bit to 32-bit conversions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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/vm/dart_entry.h ('k') | runtime/vm/datastream.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/dart_entry.h" 5 #include "vm/dart_entry.h"
6 6
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 // at the first location the user is interested in. 430 // at the first location the user is interested in.
431 isolate->debugger()->SetSingleStep(); 431 isolate->debugger()->SetSingleStep();
432 } 432 }
433 const Object& result = Object::Handle(isolate, 433 const Object& result = Object::Handle(isolate,
434 DartEntry::InvokeFunction(function, args)); 434 DartEntry::InvokeFunction(function, args));
435 ASSERT(result.IsNull() || result.IsError()); 435 ASSERT(result.IsNull() || result.IsError());
436 return result.raw(); 436 return result.raw();
437 } 437 }
438 438
439 439
440 RawObject* DartLibraryCalls::NewSendPort(intptr_t port_id) { 440 RawObject* DartLibraryCalls::NewSendPort(Dart_Port port_id) {
441 Library& isolate_lib = Library::Handle(Library::IsolateLibrary()); 441 Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
442 ASSERT(!isolate_lib.IsNull()); 442 ASSERT(!isolate_lib.IsNull());
443 const String& class_name = 443 const String& class_name =
444 String::Handle(isolate_lib.PrivateName(Symbols::_SendPortImpl())); 444 String::Handle(isolate_lib.PrivateName(Symbols::_SendPortImpl()));
445 const int kNumArguments = 1; 445 const int kNumArguments = 1;
446 const String& function_name = 446 const String& function_name =
447 String::Handle(isolate_lib.PrivateName(Symbols::_create())); 447 String::Handle(isolate_lib.PrivateName(Symbols::_create()));
448 const Function& function = Function::Handle( 448 const Function& function = Function::Handle(
449 Resolver::ResolveStatic(isolate_lib, 449 Resolver::ResolveStatic(isolate_lib,
450 class_name, 450 class_name,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 // Get send port class from isolate library. 499 // Get send port class from isolate library.
500 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary()); 500 const Library& isolate_lib = Library::Handle(Library::IsolateLibrary());
501 const Class& send_port_cls = Class::Handle( 501 const Class& send_port_cls = Class::Handle(
502 isolate_lib.LookupClassAllowPrivate(Symbols::_SendPortImpl())); 502 isolate_lib.LookupClassAllowPrivate(Symbols::_SendPortImpl()));
503 // Check for the same class id. 503 // Check for the same class id.
504 ASSERT(!send_port_cls.IsNull()); 504 ASSERT(!send_port_cls.IsNull());
505 return cls.id() == send_port_cls.id(); 505 return cls.id() == send_port_cls.id();
506 } 506 }
507 507
508 } // namespace dart 508 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.h ('k') | runtime/vm/datastream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698