| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 05f0653dc98ee4515390634551f5449e6ea0b46f..5debc74ebbab68ee18c40a863d664ad5f92e7a1b 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -1532,6 +1532,22 @@ class Call: public Expression {
|
| virtual SmallMapList* GetReceiverTypes() { return &receiver_types_; }
|
| virtual bool IsMonomorphic() { return is_monomorphic_; }
|
| CheckType check_type() const { return check_type_; }
|
| +
|
| + void set_string_check(Handle<JSObject> holder) {
|
| + holder_ = holder;
|
| + check_type_ = STRING_CHECK;
|
| + }
|
| +
|
| + void set_number_check(Handle<JSObject> holder) {
|
| + holder_ = holder;
|
| + check_type_ = NUMBER_CHECK;
|
| + }
|
| +
|
| + void set_map_check() {
|
| + holder_ = Handle<JSObject>::null();
|
| + check_type_ = RECEIVER_MAP_CHECK;
|
| + }
|
| +
|
| Handle<JSFunction> target() { return target_; }
|
|
|
| // A cache for the holder, set as a side effect of computing the target of the
|
|
|