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

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

Issue 2385423005: [stubs] Implement fast TF Builtin for Object.create (Closed)
Patch Set: rebasing 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
Index: src/compiler/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index 26407bd15bfec380a029fa94443d0572cf35adb4..3ba534dc14343732e569968121468c93d789690b 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -234,6 +234,11 @@ Node* CodeAssembler::Word32Shr(Node* value, int shift) {
: value;
}
+Node* CodeAssembler::IsWordAligned(Node* value) {
+ return WordEqual(IntPtrConstant(0),
+ WordAnd(value, IntPtrConstant((1 << kPointerSizeLog2) - 1)));
+}
+
Node* CodeAssembler::ChangeUint32ToWord(Node* value) {
if (raw_assembler_->machine()->Is64()) {
value = raw_assembler_->ChangeUint32ToUint64(value);

Powered by Google App Engine
This is Rietveld 408576698