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

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

Issue 2394193002: [stubs] Fix some CodeStubAssembler macros and adds a bitcast in the ToObjectStub. (Closed)
Patch Set: Update. 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 | « src/code-stub-assembler.cc ('k') | test/unittests/interpreter/interpreter-assembler-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index ff7ef31f4a3bbb858d90fedc4e7fc90bc5bb5922..285259ffcd8e52b252e11d8cc1ab458473c7f1fb 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -107,7 +107,7 @@ Node* CodeAssembler::NumberConstant(double value) {
}
Node* CodeAssembler::SmiConstant(Smi* value) {
- return IntPtrConstant(bit_cast<intptr_t>(value));
+ return BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value)));
}
Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) {
« no previous file with comments | « src/code-stub-assembler.cc ('k') | test/unittests/interpreter/interpreter-assembler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698