Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 12d7e065e4a3ff5e673420478fe5a69d6a712f59..2edaa9dd0581cd75c82b295ce9921ae76e68c3ca 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -3204,6 +3204,10 @@ Node* CodeStubAssembler::IsConstructorMap(Node* map) { |
return IsSetWord32(LoadMapBitField(map), 1 << Map::kIsConstructor); |
} |
+Node* CodeStubAssembler::IsConstructor(Node* object) { |
+ return IsConstructorMap(LoadMap(object)); |
+} |
+ |
Node* CodeStubAssembler::IsSpecialReceiverInstanceType(Node* instance_type) { |
STATIC_ASSERT(JS_GLOBAL_OBJECT_TYPE <= LAST_SPECIAL_RECEIVER_TYPE); |
return Int32LessThanOrEqual(instance_type, |