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

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

Issue 2496043003: [builtins] Fix pointer comparison in ToString builtin. (Closed)
Patch Set: Created 4 years, 1 month 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/builtins/builtins-object.cc
diff --git a/src/builtins/builtins-object.cc b/src/builtins/builtins-object.cc
index 01f5ad45863df21f67a1fbae052206e74cc150db..c037e11d4f4c7cb54eca74b714d2c19e99986408 100644
--- a/src/builtins/builtins-object.cc
+++ b/src/builtins/builtins-object.cc
@@ -296,10 +296,10 @@ void Builtins::Generate_ObjectProtoToString(CodeStubAssembler* assembler) {
Node* context = assembler->Parameter(3);
assembler->GotoIf(
- assembler->Word32Equal(receiver, assembler->UndefinedConstant()),
+ assembler->WordEqual(receiver, assembler->UndefinedConstant()),
&return_undefined);
- assembler->GotoIf(assembler->Word32Equal(receiver, assembler->NullConstant()),
+ assembler->GotoIf(assembler->WordEqual(receiver, assembler->NullConstant()),
&return_null);
assembler->GotoIf(assembler->TaggedIsSmi(receiver), &return_number);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-664506.js » ('j') | test/mjsunit/regress/regress-crbug-664506.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698