Commit e0681f0b authored by caitpotter88's avatar caitpotter88 Committed by Commit bot

[cleanup] delete dead code leftover from 48eff34c

Few pieces leftover which are now effectively dead code and can be safely
deleted.

BUG=v8:3502
LOG=N
R=arv@chromium.org

Review URL: https://codereview.chromium.org/1052963004

Cr-Commit-Position: refs/heads/master@{#27759}
parent a6ba7ffe
......@@ -361,7 +361,7 @@ function ArrayToString() {
func = array.join;
}
if (!IS_SPEC_FUNCTION(func)) {
return %_CallFunction(array, DefaultObjectToString);
return %_CallFunction(array, ObjectToString);
}
return %_CallFunction(array, func);
}
......
......@@ -4,24 +4,6 @@
"use strict";
// This file relies on the fact that the following declaration has been made
// in runtime.js and symbol.js:
// var $Object = global.Object;
DefaultObjectToString = ObjectToStringHarmony;
// ES6 draft 08-24-14, section 19.1.3.6
function ObjectToStringHarmony() {
if (IS_UNDEFINED(this) && !IS_UNDETECTABLE(this)) return "[object Undefined]";
if (IS_NULL(this)) return "[object Null]";
var O = ToObject(this);
var builtinTag = %_ClassOf(O);
var tag = O[symbolToStringTag];
if (!IS_STRING(tag)) {
tag = builtinTag;
}
return "[object " + tag + "]";
}
function HarmonyToStringExtendSymbolPrototype() {
%CheckIsBootstrapping();
......
......@@ -301,7 +301,7 @@ function ToStringCheckErrorObject(obj) {
function ToDetailString(obj) {
if (obj != null && IS_OBJECT(obj) && obj.toString === DefaultObjectToString) {
if (obj != null && IS_OBJECT(obj) && obj.toString === ObjectToString) {
var constructor = obj.constructor;
if (typeof constructor == "function") {
var constructorName = constructor.name;
......
......@@ -216,7 +216,6 @@ SetUpGlobal();
// ----------------------------------------------------------------------------
// Object
var DefaultObjectToString = ObjectToString;
// ECMA-262 - 15.2.4.2
function NoSideEffectsObjectToString() {
if (IS_UNDEFINED(this) && !IS_UNDETECTABLE(this)) return "[object Undefined]";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment