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

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

Issue 1989363004: [turbofan] Add FixedArray peephole optimizations to CodeStubAssembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 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 d32093496bd33f813e56aaecd04e3133f21340ce..39af56d5aa1d49a82014cf39768e15b37ab9de80 100644
--- a/src/compiler/code-assembler.h
+++ b/src/compiler/code-assembler.h
@@ -190,7 +190,8 @@ class CodeAssembler {
// ===========================================================================
// Constants.
- Node* Int32Constant(int value);
+ Node* Int32Constant(int32_t value);
+ Node* Int64Constant(int64_t value);
Node* IntPtrConstant(intptr_t value);
Node* NumberConstant(double value);
Node* SmiConstant(Smi* value);
@@ -200,6 +201,10 @@ class CodeAssembler {
Node* Float64Constant(double value);
Node* NaNConstant();
+ bool ToInt32Constant(Node* node, int32_t& out_value);
+ bool ToInt64Constant(Node* node, int64_t& out_value);
+ bool ToIntPtrConstant(Node* node, intptr_t& out_value);
+
Node* Parameter(int value);
void Return(Node* value);

Powered by Google App Engine
This is Rietveld 408576698