| Index: src/ast.h
|
| ===================================================================
|
| --- src/ast.h (revision 6941)
|
| +++ src/ast.h (working copy)
|
| @@ -1214,6 +1214,7 @@
|
| is_monomorphic_(false),
|
| receiver_types_(NULL),
|
| is_array_length_(false),
|
| + is_function_prototype_(false),
|
| is_arguments_access_(false) { }
|
|
|
| DECLARE_NODE_TYPE(Property)
|
| @@ -1226,6 +1227,8 @@
|
| int position() const { return pos_; }
|
| bool is_synthetic() const { return type_ == SYNTHETIC; }
|
|
|
| + bool IsFunctionPrototype() const { return is_function_prototype_; }
|
| +
|
| // Marks that this is actually an argument rewritten to a keyed property
|
| // accessing the argument through the arguments shadow object.
|
| void set_is_arguments_access(bool is_arguments_access) {
|
| @@ -1251,6 +1254,7 @@
|
| bool is_monomorphic_;
|
| ZoneMapList* receiver_types_;
|
| bool is_array_length_;
|
| + bool is_function_prototype_;
|
| bool is_arguments_access_;
|
| Handle<Map> monomorphic_receiver_type_;
|
| };
|
| @@ -1263,6 +1267,7 @@
|
| arguments_(arguments),
|
| pos_(pos),
|
| is_monomorphic_(false),
|
| + check_type_(RECEIVER_MAP_CHECK),
|
| receiver_types_(NULL),
|
| return_id_(GetNextId()) {
|
| }
|
| @@ -1278,6 +1283,7 @@
|
| void RecordTypeFeedback(TypeFeedbackOracle* oracle);
|
| virtual ZoneMapList* GetReceiverTypes() { return receiver_types_; }
|
| virtual bool IsMonomorphic() { return is_monomorphic_; }
|
| + CheckType check_type() const { return check_type_; }
|
| Handle<JSFunction> target() { return target_; }
|
| Handle<JSObject> holder() { return holder_; }
|
| Handle<JSGlobalPropertyCell> cell() { return cell_; }
|
| @@ -1299,6 +1305,7 @@
|
| int pos_;
|
|
|
| bool is_monomorphic_;
|
| + CheckType check_type_;
|
| ZoneMapList* receiver_types_;
|
| Handle<JSFunction> target_;
|
| Handle<JSObject> holder_;
|
| @@ -1416,7 +1423,7 @@
|
| : op_(op), left_(left), right_(right), pos_(pos), is_smi_only_(false) {
|
| ASSERT(Token::IsBinaryOp(op));
|
| right_id_ = (op == Token::AND || op == Token::OR)
|
| - ? GetNextId()
|
| + ? static_cast<int>(GetNextId())
|
| : AstNode::kNoNumber;
|
| }
|
|
|
|
|