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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2571563005: Turn the VM's dart:typed_data into a patch (Closed)
Patch Set: Fix interface/implementation type mismatch Created 4 years 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/dart_api_impl.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index e3963d94dea0f76d57bf9f464f5b33bee4a58a33..265c3088f86794e090dc8e8031afc7559b43efc2 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -76,12 +76,11 @@ uword FlowGraphBuilder::FindDoubleConstant(double value) {
}
-#define RECOGNIZE_FACTORY(test_factory_symbol, cid, fp) \
- {Symbols::k##test_factory_symbol##Id, cid, fp, \
- #test_factory_symbol ", " #cid}, // NOLINT
+#define RECOGNIZE_FACTORY(symbol, class_name, constructor_name, cid, fp) \
+ {Symbols::k##symbol##Id, cid, fp, #symbol ", " #cid}, // NOLINT
static struct {
- intptr_t symbold_id;
+ intptr_t symbol_id;
intptr_t cid;
intptr_t finger_print;
const char* name;
@@ -98,10 +97,10 @@ intptr_t FactoryRecognizer::ResultCid(const Function& factory) {
(lib.raw() == Library::TypedDataLibrary()));
const String& factory_name = String::Handle(factory.name());
for (intptr_t i = 0;
- factory_recognizer_list[i].symbold_id != Symbols::kIllegal; i++) {
+ factory_recognizer_list[i].symbol_id != Symbols::kIllegal; i++) {
if (String::EqualsIgnoringPrivateKey(
factory_name,
- Symbols::Symbol(factory_recognizer_list[i].symbold_id))) {
+ Symbols::Symbol(factory_recognizer_list[i].symbol_id))) {
return factory_recognizer_list[i].cid;
}
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698