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

Unified Diff: src/compiler/code-assembler.h

Issue 2277363002: [stubs] Consolidate TryToName implementation (Closed)
Patch Set: fix strings of uncacheable indices Created 4 years, 3 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
Index: src/compiler/code-assembler.h
diff --git a/src/compiler/code-assembler.h b/src/compiler/code-assembler.h
index bea999b705627fb558a3f3de548b54e9b47dbb52..17319882ccb979aac392f7a887034ef069bbec21 100644
--- a/src/compiler/code-assembler.h
+++ b/src/compiler/code-assembler.h
@@ -283,6 +283,10 @@ class CodeAssembler {
CODE_ASSEMBLER_UNARY_OP_LIST(DECLARE_CODE_ASSEMBLER_UNARY_OP)
#undef DECLARE_CODE_ASSEMBLER_UNARY_OP
+ // Changes an intptr_t to a double, e.g. for storing an element index
+ // outside Smi range in a HeapNumber. Lossless on 32-bit,
+ // rounds on 64-bit (which doesn't affect valid element indices).
+ Node* RoundIntPtrToFloat64(Node* value);
// No-op on 32-bit, otherwise zero extend.
Node* ChangeUint32ToWord(Node* value);
// No-op on 32-bit, otherwise sign extend.

Powered by Google App Engine
This is Rietveld 408576698