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

Side by Side Diff: src/vm/scheduler.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments 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
« no previous file with comments | « src/vm/scheduler.h ('k') | src/vm/selector_row.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) 2014, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #include "src/vm/scheduler.h" 5 #include "src/vm/scheduler.h"
6 6
7 #include "src/shared/flags.h" 7 #include "src/shared/flags.h"
8 8
9 #include "src/vm/frame.h" 9 #include "src/vm/frame.h"
10 #include "src/vm/gc_thread.h" 10 #include "src/vm/gc_thread.h"
11 #include "src/vm/interpreter.h" 11 #include "src/vm/interpreter.h"
12 #include "src/vm/links.h" 12 #include "src/vm/links.h"
13 #include "src/vm/port.h" 13 #include "src/vm/port.h"
14 #include "src/vm/process.h" 14 #include "src/vm/process.h"
15 #include "src/vm/process_queue.h" 15 #include "src/vm/process_queue.h"
16 #include "src/vm/session.h" 16 #include "src/vm/session.h"
17 #include "src/vm/thread.h" 17 #include "src/vm/thread.h"
18 18
19 #define HANDLE_BY_SESSION_OR_SELF(session_expression, self_expression) \ 19 #define HANDLE_BY_SESSION_OR_SELF(session_expression, self_expression) \
20 do { \ 20 do { \
21 Session* session = process->program()->session(); \ 21 Session* session = process->program()->session(); \
22 if (session == NULL || !session->is_debugging() || \ 22 if (session == NULL || !session->is_debugging() || \
23 !(session_expression)) { \ 23 !(session_expression)) { \
24 self_expression; \ 24 self_expression; \
25 } \ 25 } \
26 } while (false); 26 } while (false);
27 27
28 namespace fletch { 28 namespace dartino {
29 29
30 // Global instance of scheduler. 30 // Global instance of scheduler.
31 Scheduler* Scheduler::scheduler_ = NULL; 31 Scheduler* Scheduler::scheduler_ = NULL;
32 32
33 WorkerThread::WorkerThread(Scheduler* scheduler) 33 WorkerThread::WorkerThread(Scheduler* scheduler)
34 : scheduler_(scheduler) {} 34 : scheduler_(scheduler) {}
35 35
36 WorkerThread::~WorkerThread() { } 36 WorkerThread::~WorkerThread() { }
37 37
38 void InterpretationBarrier::PreemptProcess() { 38 void InterpretationBarrier::PreemptProcess() {
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 if (runner->programs_[i] == program) { 765 if (runner->programs_[i] == program) {
766 runner->exitcodes_[i] = exitcode; 766 runner->exitcodes_[i] = exitcode;
767 runner->remaining_--; 767 runner->remaining_--;
768 runner->monitor_->NotifyAll(); 768 runner->monitor_->NotifyAll();
769 return; 769 return;
770 } 770 }
771 } 771 }
772 UNREACHABLE(); 772 UNREACHABLE();
773 } 773 }
774 774
775 } // namespace fletch 775 } // namespace dartino
OLDNEW
« no previous file with comments | « src/vm/scheduler.h ('k') | src/vm/selector_row.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698