Index: src/builtins/builtins-conversion-gen.cc |
diff --git a/src/builtins/builtins-conversion.cc b/src/builtins/builtins-conversion-gen.cc |
similarity index 94% |
rename from src/builtins/builtins-conversion.cc |
rename to src/builtins/builtins-conversion-gen.cc |
index 93a8c2e976a05c846470f0c0a9e5910e3b7f8b08..454bccd2b3dd2c6ec6b25e5306e1bb712f42e03f 100644 |
--- a/src/builtins/builtins-conversion.cc |
+++ b/src/builtins/builtins-conversion-gen.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "src/builtins/builtins-utils.h" |
+#include "src/builtins/builtins-utils-gen.h" |
#include "src/builtins/builtins.h" |
#include "src/code-factory.h" |
#include "src/code-stub-assembler.h" |
@@ -22,19 +22,6 @@ class ConversionBuiltinsAssembler : public CodeStubAssembler { |
void Generate_OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint); |
}; |
-Handle<Code> Builtins::NonPrimitiveToPrimitive(ToPrimitiveHint hint) { |
- switch (hint) { |
- case ToPrimitiveHint::kDefault: |
- return NonPrimitiveToPrimitive_Default(); |
- case ToPrimitiveHint::kNumber: |
- return NonPrimitiveToPrimitive_Number(); |
- case ToPrimitiveHint::kString: |
- return NonPrimitiveToPrimitive_String(); |
- } |
- UNREACHABLE(); |
- return Handle<Code>::null(); |
-} |
- |
// ES6 section 7.1.1 ToPrimitive ( input [ , PreferredType ] ) |
void ConversionBuiltinsAssembler::Generate_NonPrimitiveToPrimitive( |
ToPrimitiveHint hint) { |
@@ -169,17 +156,6 @@ TF_BUILTIN(ToString, CodeStubAssembler) { |
{ Return(CallRuntime(Runtime::kToString, context, input)); } |
} |
-Handle<Code> Builtins::OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint) { |
- switch (hint) { |
- case OrdinaryToPrimitiveHint::kNumber: |
- return OrdinaryToPrimitive_Number(); |
- case OrdinaryToPrimitiveHint::kString: |
- return OrdinaryToPrimitive_String(); |
- } |
- UNREACHABLE(); |
- return Handle<Code>::null(); |
-} |
- |
// 7.1.1.1 OrdinaryToPrimitive ( O, hint ) |
void ConversionBuiltinsAssembler::Generate_OrdinaryToPrimitive( |
OrdinaryToPrimitiveHint hint) { |