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

Unified Diff: src/builtins/builtins-conversion-gen.cc

Issue 2752143004: [refactor] Separate generated builtins and C++ builtins into separate files (Closed)
Patch Set: tentative gcmole fix Created 3 years, 9 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/builtins/builtins-conversion.cc ('k') | src/builtins/builtins-date.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/builtins/builtins-conversion.cc ('k') | src/builtins/builtins-date.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698