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

Unified Diff: runtime/vm/code_descriptors_test.cc

Issue 2670843006: Encode inlining information in CodeSourceMap and remove inlining interval arrays. (Closed)
Patch Set: . Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors_test.cc
diff --git a/runtime/vm/code_descriptors_test.cc b/runtime/vm/code_descriptors_test.cc
index 0097bb457ca1e4bbc5f7d3f952087a8bade936d2..3d2b6a175e5ff5aa23369544a6c09c2700d7fcfd 100644
--- a/runtime/vm/code_descriptors_test.cc
+++ b/runtime/vm/code_descriptors_test.cc
@@ -319,52 +319,4 @@ TEST_CASE(DescriptorList_TokenPositions) {
}
}
-
-TEST_CASE(CodeSourceMap_TokenPositions) {
- const intptr_t token_positions[] = {
- kMinInt32,
- 5,
- 13,
- 13,
- 13,
- 13,
- 31,
- 23,
- 23,
- 23,
- 33,
- 33,
- 5,
- 5,
- TokenPosition::kMinSourcePos,
- TokenPosition::kMaxSourcePos,
- };
- const intptr_t num_token_positions =
- sizeof(token_positions) / sizeof(token_positions[0]);
-
- CodeSourceMapBuilder* builder = new CodeSourceMapBuilder();
- ASSERT(builder != NULL);
-
- for (intptr_t i = 0; i < num_token_positions; i++) {
- builder->AddEntry(i, TokenPosition(token_positions[i]));
- }
-
- const CodeSourceMap& code_Source_map =
- CodeSourceMap::Handle(builder->Finalize());
-
- ASSERT(!code_Source_map.IsNull());
- CodeSourceMap::Iterator it(code_Source_map);
-
- uintptr_t i = 0;
- while (it.MoveNext()) {
- EXPECT(it.PcOffset() == i);
- if (token_positions[i] != it.TokenPos().value()) {
- OS::Print("[%" Pd "]: Expected: %" Pd " != %" Pd "\n", i,
- token_positions[i], it.TokenPos().value());
- }
- EXPECT(token_positions[i] == it.TokenPos().value());
- i++;
- }
-}
-
} // namespace dart
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698