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

Unified Diff: runtime/vm/precompiler.h

Issue 2901533002: [kernel] Stream everything. Replace .kernel_function with .kernel_offset (Closed)
Patch Set: Fix for bad merge Created 3 years, 6 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/parser.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 dec16dca56941e67e32585de07b9a0381e69bcad..07dfed28c9568f9d619d68ac385a11e371f7c0f8 100644
--- a/runtime/vm/precompiler.h
+++ b/runtime/vm/precompiler.h
@@ -108,8 +108,8 @@ class FunctionKeyValueTrait {
static inline intptr_t Hashcode(Key key) {
// We are using pointer hash for objects originating from Kernel because
// Fasta currently does not assign any position information to them.
- if (key->kernel_function() != NULL) {
- return SimplePointerHash(key->kernel_function());
+ if (key->kernel_offset() > 0) {
+ return key->kernel_offset();
} else {
return key->token_pos().value();
}
@@ -137,8 +137,8 @@ class FieldKeyValueTrait {
static inline intptr_t Hashcode(Key key) {
// We are using pointer hash for objects originating from Kernel because
// Fasta currently does not assign any position information to them.
- if (key->kernel_field() != NULL) {
- return SimplePointerHash(key->kernel_field());
+ if (key->kernel_offset() > 0) {
+ return key->kernel_offset();
} else {
return key->token_pos().value();
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698