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

Unified Diff: src/builtins/builtins-boolean.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-async-iterator-gen.cc ('k') | src/builtins/builtins-boolean-gen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-boolean.cc
diff --git a/src/builtins/builtins-boolean.cc b/src/builtins/builtins-boolean.cc
index 65bdb031b393018676d21fa75ca384f9c240012f..dabd803dc182b5fac0449d4cfc3a6f5e0ea763c4 100644
--- a/src/builtins/builtins-boolean.cc
+++ b/src/builtins/builtins-boolean.cc
@@ -4,7 +4,6 @@
#include "src/builtins/builtins-utils.h"
#include "src/builtins/builtins.h"
-#include "src/code-stub-assembler.h"
#include "src/counters.h"
#include "src/objects-inl.h"
@@ -36,34 +35,5 @@ BUILTIN(BooleanConstructor_ConstructStub) {
return *result;
}
-// ES6 section 19.3.3.2 Boolean.prototype.toString ( )
-void Builtins::Generate_BooleanPrototypeToString(
- compiler::CodeAssemblerState* state) {
- typedef compiler::Node Node;
- CodeStubAssembler assembler(state);
-
- Node* receiver = assembler.Parameter(0);
- Node* context = assembler.Parameter(3);
-
- Node* value = assembler.ToThisValue(
- context, receiver, PrimitiveType::kBoolean, "Boolean.prototype.toString");
- Node* result = assembler.LoadObjectField(value, Oddball::kToStringOffset);
- assembler.Return(result);
-}
-
-// ES6 section 19.3.3.3 Boolean.prototype.valueOf ( )
-void Builtins::Generate_BooleanPrototypeValueOf(
- compiler::CodeAssemblerState* state) {
- typedef compiler::Node Node;
- CodeStubAssembler assembler(state);
-
- Node* receiver = assembler.Parameter(0);
- Node* context = assembler.Parameter(3);
-
- Node* result = assembler.ToThisValue(
- context, receiver, PrimitiveType::kBoolean, "Boolean.prototype.valueOf");
- assembler.Return(result);
-}
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/builtins/builtins-async-iterator-gen.cc ('k') | src/builtins/builtins-boolean-gen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698