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

Unified Diff: runtime/vm/deopt_instructions.h

Issue 1644223006: Fix some more shorten-64-to-32 warnings: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments. Created 4 years, 11 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/dart_api_state.h ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.h
diff --git a/runtime/vm/deopt_instructions.h b/runtime/vm/deopt_instructions.h
index acbf92bb57892d79d0cbd1145af2721175cddb7f..3dd538f311a81b94a137ebdf1f53aabc69b4a03a 100644
--- a/runtime/vm/deopt_instructions.h
+++ b/runtime/vm/deopt_instructions.h
@@ -399,8 +399,9 @@ class RegisterSource {
}
private:
- class KindField : public BitField<intptr_t, 0, 1> { };
- class RawIndexField : public BitField<intptr_t, 1, kBitsPerWord - 1> { };
+ class KindField : public BitField<intptr_t, intptr_t, 0, 1> { };
+ class RawIndexField :
+ public BitField<intptr_t, intptr_t, 1, kBitsPerWord - 1> { };
bool is_register() const {
return KindField::decode(source_index_) == kRegister;
@@ -543,8 +544,9 @@ class DeoptTable : public AllStatic {
FlagsField::encode(flags));
}
- class ReasonField : public BitField<ICData::DeoptReasonId, 0, 8> { };
- class FlagsField : public BitField<uint32_t, 8, 8> { };
+ class ReasonField :
+ public BitField<intptr_t, ICData::DeoptReasonId, 0, 8> { };
+ class FlagsField : public BitField<intptr_t, uint32_t, 8, 8> { };
private:
static const intptr_t kEntrySize = 3;
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698