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

Unified 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: indentation Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/vm/session.cc
diff --git a/src/vm/session.cc b/src/vm/session.cc
index 74b3d132b5b2436fd1eb5401634952f51f48f95d..dfe08655a1a7cd67b339530a191111067e1fbbe7 100644
--- a/src/vm/session.cc
+++ b/src/vm/session.cc
@@ -766,12 +766,19 @@ void Session::PushBuiltinClass(Names::Id name, int fields) {
klass = program()->coroutine_class();
} else if (name == Names::kPort) {
klass = program()->port_class();
- } else if (name == Names::kForeign) {
- klass = program()->foreign_class();
+ } else if (name == Names::kForeignMemory) {
+ klass = program()->foreignmemory_class();
+ } else if (name == Names::kForeignFunction) {
+ klass = program()->foreignfunction_class();
} else {
+ printf("name: %d, %d", name, Names::kForeignFunction);
kasperl 2015/07/03 07:49:54 Debug printing?
ricow1 2015/07/03 08:57:25 Done.
UNREACHABLE();
}
+ if (!(klass->instance_format().type() != InstanceFormat::INSTANCE_TYPE ||
kasperl 2015/07/03 07:49:54 Debug printing?
ricow1 2015/07/03 08:57:25 Well in this case I would call it: HowTheHellIsThi
+ klass->NumberOfInstanceFields() == fields)) {
+ printf("Numberof fields: %d %d", klass->NumberOfInstanceFields(), fields);
+ }
ASSERT(klass->instance_format().type() != InstanceFormat::INSTANCE_TYPE ||
klass->NumberOfInstanceFields() == fields);

Powered by Google App Engine
This is Rietveld 408576698