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

Unified Diff: runtime/vm/precompiler.h

Issue 2687143005: Include metadata in AOT to expand inline frames in stack traces and provide line numbers. (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/object.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/precompiler.h
diff --git a/runtime/vm/precompiler.h b/runtime/vm/precompiler.h
index 6f504f18c8c4401fbe6b5f9b3d0483ab111b25d4..e47674cfda4c8ab1d062216decb4e7702d8a421e 100644
--- a/runtime/vm/precompiler.h
+++ b/runtime/vm/precompiler.h
@@ -87,6 +87,27 @@ class StackMapKeyValueTrait {
typedef DirectChainedHashMap<StackMapKeyValueTrait> StackMapSet;
+class CodeSourceMapKeyValueTrait {
+ public:
+ // Typedefs needed for the DirectChainedHashMap template.
+ typedef const CodeSourceMap* Key;
+ typedef const CodeSourceMap* Value;
+ typedef const CodeSourceMap* Pair;
+
+ static Key KeyOf(Pair kv) { return kv; }
+
+ static Value ValueOf(Pair kv) { return kv; }
+
+ static inline intptr_t Hashcode(Key key) { return key->Length(); }
+
+ static inline bool IsKeyEqual(Pair pair, Key key) {
+ return pair->Equals(*key);
+ }
+};
+
+typedef DirectChainedHashMap<CodeSourceMapKeyValueTrait> CodeSourceMapSet;
+
+
class ArrayKeyValueTrait {
public:
// Typedefs needed for the DirectChainedHashMap template.
@@ -461,6 +482,7 @@ class Precompiler : public ValueObject {
void SwitchICCalls();
void ShareMegamorphicBuckets();
void DedupStackMaps();
+ void DedupCodeSourceMaps();
void DedupLists();
void DedupInstructions();
void ResetPrecompilerState();
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698