Commit ec00a78f authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Assign proper type to Object.prototype.toString().

BUG=v8:5267
R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2652273003
Cr-Commit-Position: refs/heads/master@{#42691}
parent 76850146
......@@ -1505,6 +1505,8 @@ Type* Typer::Visitor::JSCallFunctionTyper(Type* fun, Typer* t) {
return Type::OtherObject();
case kObjectHasOwnProperty:
return Type::Boolean();
case kObjectToString:
return Type::String();
// RegExp functions.
case kRegExpCompile:
......
......@@ -6996,6 +6996,7 @@ class Script: public Struct {
V(Object, assign, ObjectAssign) \
V(Object, create, ObjectCreate) \
V(Object.prototype, hasOwnProperty, ObjectHasOwnProperty) \
V(Object.prototype, toString, ObjectToString) \
V(RegExp.prototype, compile, RegExpCompile) \
V(RegExp.prototype, exec, RegExpExec) \
V(RegExp.prototype, test, RegExpTest) \
......
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