Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: src/ast.h

Issue 680993003: Classes: Add basic support for properties (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 // Type feedback information. 1505 // Type feedback information.
1506 void RecordTypeFeedback(TypeFeedbackOracle* oracle); 1506 void RecordTypeFeedback(TypeFeedbackOracle* oracle);
1507 bool IsMonomorphic() { return !receiver_type_.is_null(); } 1507 bool IsMonomorphic() { return !receiver_type_.is_null(); }
1508 Handle<Map> GetReceiverType() { return receiver_type_; } 1508 Handle<Map> GetReceiverType() { return receiver_type_; }
1509 1509
1510 bool IsCompileTimeValue(); 1510 bool IsCompileTimeValue();
1511 1511
1512 void set_emit_store(bool emit_store); 1512 void set_emit_store(bool emit_store);
1513 bool emit_store(); 1513 bool emit_store();
1514 1514
1515 bool is_static() const { return is_static_; }
1516
1515 protected: 1517 protected:
1516 template<class> friend class AstNodeFactory; 1518 template<class> friend class AstNodeFactory;
1517 1519
1518 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, 1520 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value,
1519 bool is_static); 1521 bool is_static);
1520 void set_key(Literal* key) { key_ = key; } 1522 void set_key(Literal* key) { key_ = key; }
1521 1523
1522 private: 1524 private:
1523 Literal* key_; 1525 Literal* key_;
1524 Expression* value_; 1526 Expression* value_;
(...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3649 private: 3651 private:
3650 Zone* zone_; 3652 Zone* zone_;
3651 Visitor visitor_; 3653 Visitor visitor_;
3652 AstValueFactory* ast_value_factory_; 3654 AstValueFactory* ast_value_factory_;
3653 }; 3655 };
3654 3656
3655 3657
3656 } } // namespace v8::internal 3658 } } // namespace v8::internal
3657 3659
3658 #endif // V8_AST_H_ 3660 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698