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

Side by Side Diff: runtime/vm/isolate.h

Issue 68813002: Fix VM not accepting static methods for Isolate.spawn. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: removed throw_exception boolean. Created 7 years, 1 month 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/lib/isolate.cc ('k') | runtime/vm/isolate.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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 class IsolateSpawnState { 554 class IsolateSpawnState {
555 public: 555 public:
556 explicit IsolateSpawnState(const Function& func); 556 explicit IsolateSpawnState(const Function& func);
557 explicit IsolateSpawnState(const char* script_url); 557 explicit IsolateSpawnState(const char* script_url);
558 ~IsolateSpawnState(); 558 ~IsolateSpawnState();
559 559
560 Isolate* isolate() const { return isolate_; } 560 Isolate* isolate() const { return isolate_; }
561 void set_isolate(Isolate* value) { isolate_ = value; } 561 void set_isolate(Isolate* value) { isolate_ = value; }
562 char* script_url() const { return script_url_; } 562 char* script_url() const { return script_url_; }
563 char* library_url() const { return library_url_; } 563 char* library_url() const { return library_url_; }
564 char* class_name() const { return class_name_; }
564 char* function_name() const { return function_name_; } 565 char* function_name() const { return function_name_; }
565 char* exception_callback_name() const { return exception_callback_name_; } 566 char* exception_callback_name() const { return exception_callback_name_; }
566 bool is_spawn_uri() const { return library_url_ == NULL; } 567 bool is_spawn_uri() const { return library_url_ == NULL; }
567 568
568 RawObject* ResolveFunction(); 569 RawObject* ResolveFunction();
569 void Cleanup(); 570 void Cleanup();
570 571
571 private: 572 private:
572 Isolate* isolate_; 573 Isolate* isolate_;
573 char* script_url_; 574 char* script_url_;
574 char* library_url_; 575 char* library_url_;
576 char* class_name_;
575 char* function_name_; 577 char* function_name_;
576 char* exception_callback_name_; 578 char* exception_callback_name_;
577 }; 579 };
578 580
579 } // namespace dart 581 } // namespace dart
580 582
581 #endif // VM_ISOLATE_H_ 583 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698