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 |