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

Unified Diff: src/builtins/builtins-number.cc

Issue 2436893003: [stubs] Cleanup CSA::BitFieldDecode() and friends. (Closed)
Patch Set: Addressing comments Created 4 years, 2 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 | src/builtins/builtins-object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-number.cc
diff --git a/src/builtins/builtins-number.cc b/src/builtins/builtins-number.cc
index 6ce4644624c2dd4dc11c575f4618c3c253cadc21..34c9d0a7f3d5542432810c98ac47ac846350672b 100644
--- a/src/builtins/builtins-number.cc
+++ b/src/builtins/builtins-number.cc
@@ -207,7 +207,7 @@ void Builtins::Generate_NumberParseFloat(CodeStubAssembler* assembler) {
{
// Just return the {input}s cached array index.
Node* input_array_index =
- assembler->BitFieldDecodeWord<String::ArrayIndexValueBits>(
+ assembler->DecodeWordFromWord32<String::ArrayIndexValueBits>(
input_hash);
assembler->Return(assembler->SmiTag(input_array_index));
}
@@ -340,7 +340,8 @@ void Builtins::Generate_NumberParseInt(CodeStubAssembler* assembler) {
// Return the cached array index as result.
Node* input_index =
- assembler->BitFieldDecode<String::ArrayIndexValueBits>(input_hash);
+ assembler->DecodeWordFromWord32<String::ArrayIndexValueBits>(
+ input_hash);
Node* result = assembler->SmiTag(input_index);
assembler->Return(result);
}
« no previous file with comments | « no previous file | src/builtins/builtins-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698