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

Unified Diff: src/hydrogen.h

Issue 369673007: Hydrogenized KeyedLoadGeneric stub: Fix BuildDecodeField (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 851e69225021029b501a3012f6d483b7acfeb846..a0fdf00f9d706cc58dda92ca9573aa50e72a98ff 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1311,10 +1311,11 @@ class HGraphBuilder {
template <class BitFieldClass>
HValue* BuildDecodeField(HValue* encoded_field) {
- HValue* shifted_field = AddUncasted<HShr>(encoded_field,
- Add<HConstant>(static_cast<int>(BitFieldClass::kShift)));
HValue* mask_value = Add<HConstant>(static_cast<int>(BitFieldClass::kMask));
- return AddUncasted<HBitwise>(Token::BIT_AND, shifted_field, mask_value);
+ HValue* masked_field =
+ AddUncasted<HBitwise>(Token::BIT_AND, encoded_field, mask_value);
+ return AddUncasted<HShr>(masked_field,
+ Add<HConstant>(static_cast<int>(BitFieldClass::kShift)));
}
HValue* BuildGetElementsKind(HValue* object);
« 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