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

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

Issue 1439893002: - Annotate instructions that load objects from the ObjectPool or Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4243 matching lines...) Expand 10 before | Expand all | Expand 10 after
4254 Function& func = Function::Handle(cls.LookupFunction(func_name)); 4254 Function& func = Function::Handle(cls.LookupFunction(func_name));
4255 ASSERT(!func.IsNull()); 4255 ASSERT(!func.IsNull());
4256 func.PrintJSON(&js, true); 4256 func.PrintJSON(&js, true);
4257 ElideJSONSubstring("classes", js.ToCString(), buffer); 4257 ElideJSONSubstring("classes", js.ToCString(), buffer);
4258 EXPECT_STREQ( 4258 EXPECT_STREQ(
4259 "{\"type\":\"@Function\",\"fixedId\":true," 4259 "{\"type\":\"@Function\",\"fixedId\":true,"
4260 "\"id\":\"\",\"name\":\"toString\"," 4260 "\"id\":\"\",\"name\":\"toString\","
4261 "\"owner\":{\"type\":\"@Class\",\"fixedId\":true,\"id\":\"\"," 4261 "\"owner\":{\"type\":\"@Class\",\"fixedId\":true,\"id\":\"\","
4262 "\"name\":\"bool\"}," 4262 "\"name\":\"bool\"},"
4263 "\"_kind\":\"RegularFunction\"," 4263 "\"_kind\":\"RegularFunction\","
4264 "\"static\":false,\"const\":false}", 4264 "\"static\":false,\"const\":false,"
4265 "\"_intrinsic\":false,\"_native\":false}",
4265 buffer); 4266 buffer);
4266 } 4267 }
4267 // Library reference 4268 // Library reference
4268 { 4269 {
4269 JSONStream js; 4270 JSONStream js;
4270 Library& lib = Library::Handle(isolate->object_store()->core_library()); 4271 Library& lib = Library::Handle(isolate->object_store()->core_library());
4271 lib.PrintJSON(&js, true); 4272 lib.PrintJSON(&js, true);
4272 ElideJSONSubstring("libraries", js.ToCString(), buffer); 4273 ElideJSONSubstring("libraries", js.ToCString(), buffer);
4273 EXPECT_STREQ( 4274 EXPECT_STREQ(
4274 "{\"type\":\"@Library\",\"fixedId\":true,\"id\":\"\"," 4275 "{\"type\":\"@Library\",\"fixedId\":true,\"id\":\"\","
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
4787 String& test = String::Handle(); 4788 String& test = String::Handle();
4788 String& result = String::Handle(); 4789 String& result = String::Handle();
4789 for (size_t i = 0; i < ARRAY_SIZE(tests); i++) { 4790 for (size_t i = 0; i < ARRAY_SIZE(tests); i++) {
4790 test = String::New(tests[i].in); 4791 test = String::New(tests[i].in);
4791 result = String::IdentifierPrettyName(test); 4792 result = String::IdentifierPrettyName(test);
4792 EXPECT_STREQ(tests[i].out, result.ToCString()); 4793 EXPECT_STREQ(tests[i].out, result.ToCString());
4793 } 4794 }
4794 } 4795 }
4795 4796
4796 } // namespace dart 4797 } // namespace dart
OLDNEW
« runtime/vm/instructions_arm.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698