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

Unified Diff: src/compiler/js-operator.h

Issue 1107253003: [turbofan] Better fix for Win64 after r28066. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-operator.h
diff --git a/src/compiler/js-operator.h b/src/compiler/js-operator.h
index f2ab96213ff0d56fea7ba55ecbce21df571a4a90..dc002e154721b63147c9dc5bab9dd6059898a834 100644
--- a/src/compiler/js-operator.h
+++ b/src/compiler/js-operator.h
@@ -23,8 +23,7 @@ class CallFunctionParameters final {
public:
CallFunctionParameters(size_t arity, CallFunctionFlags flags,
LanguageMode language_mode)
- : bit_field_(ArityField::encode(static_cast<unsigned>(arity)) |
- FlagsField::encode(flags) |
+ : bit_field_(ArityField::encode(arity) | FlagsField::encode(flags) |
LanguageModeField::encode(language_mode)) {}
size_t arity() const { return ArityField::decode(bit_field_); }
@@ -45,7 +44,7 @@ class CallFunctionParameters final {
return p.bit_field_;
}
- typedef BitField<unsigned, 0, 28> ArityField;
+ typedef BitField<size_t, 0, 28> ArityField;
typedef BitField<CallFunctionFlags, 28, 2> FlagsField;
typedef BitField<LanguageMode, 30, 2> LanguageModeField;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698