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

Unified Diff: src/serialize.h

Issue 441983002: Check that external references are registered in the serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove bogus assertions Created 6 years, 4 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 | « src/mips/codegen-mips.cc ('k') | src/serialize.cc » ('j') | src/serialize.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index 8409c951d8c8db9adb6990ee818719ef4f6c263e..5528db30e3711a471e064c451995077bb0a2c73a 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -81,6 +81,11 @@ class ExternalReferenceTable {
// For other types of references, the caller will figure out the address.
void Add(Address address, TypeCode type, uint16_t id, const char* name);
+ static int Compare(const ExternalReferenceEntry* a,
+ const ExternalReferenceEntry* b) {
+ return static_cast<int>(a->code) - static_cast<int>(b->code);
+ }
+
List<ExternalReferenceEntry> refs_;
int max_id_[kTypeCodeCount];
};
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/serialize.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698