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

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

Issue 1209033003: Work in progres, please take a look and give early feedback if this is the way we want to structure… (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: address comments Created 5 years, 5 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/program.cc ('k') | src/vm/vm.gyp » ('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 Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Fletch 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/session.h" 5 #include "src/vm/session.h"
6 6
7 #include "src/shared/bytecodes.h" 7 #include "src/shared/bytecodes.h"
8 #include "src/shared/connection.h" 8 #include "src/shared/connection.h"
9 #include "src/shared/flags.h" 9 #include "src/shared/flags.h"
10 10
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 } else if (name == Names::kConstantMap) { 759 } else if (name == Names::kConstantMap) {
760 klass = program()->constant_map_class(); 760 klass = program()->constant_map_class();
761 } else if (name == Names::kNum) { 761 } else if (name == Names::kNum) {
762 klass = program()->num_class(); 762 klass = program()->num_class();
763 } else if (name == Names::kString) { 763 } else if (name == Names::kString) {
764 klass = program()->string_class(); 764 klass = program()->string_class();
765 } else if (name == Names::kCoroutine) { 765 } else if (name == Names::kCoroutine) {
766 klass = program()->coroutine_class(); 766 klass = program()->coroutine_class();
767 } else if (name == Names::kPort) { 767 } else if (name == Names::kPort) {
768 klass = program()->port_class(); 768 klass = program()->port_class();
769 } else if (name == Names::kForeign) { 769 } else if (name == Names::kForeignMemory) {
770 klass = program()->foreign_class(); 770 klass = program()->foreign_memory_class();
771 } else if (name == Names::kForeignFunction) {
772 klass = program()->foreign_function_class();
771 } else { 773 } else {
772 UNREACHABLE(); 774 UNREACHABLE();
773 } 775 }
774 776
775 ASSERT(klass->instance_format().type() != InstanceFormat::INSTANCE_TYPE || 777 ASSERT(klass->instance_format().type() != InstanceFormat::INSTANCE_TYPE ||
776 klass->NumberOfInstanceFields() == fields); 778 klass->NumberOfInstanceFields() == fields);
777 779
778 Push(klass); 780 Push(klass);
779 } 781 }
780 782
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 // heaps; they need to be visited as well. See Program::CollectGarbage for 1074 // heaps; they need to be visited as well. See Program::CollectGarbage for
1073 // how it is done there. 1075 // how it is done there.
1074 // Issue: https://github.com/dart-lang/fletch/issues/51 1076 // Issue: https://github.com/dart-lang/fletch/issues/51
1075 TransformInstancesProcessVisitor process_visitor; 1077 TransformInstancesProcessVisitor process_visitor;
1076 Scheduler* scheduler = program()->scheduler(); 1078 Scheduler* scheduler = program()->scheduler();
1077 VisitProcesses(&process_visitor); 1079 VisitProcesses(&process_visitor);
1078 scheduler->VisitProcesses(program(), &process_visitor); 1080 scheduler->VisitProcesses(program(), &process_visitor);
1079 } 1081 }
1080 1082
1081 } // namespace fletch 1083 } // namespace fletch
OLDNEW
« no previous file with comments | « src/vm/program.cc ('k') | src/vm/vm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698