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

Side by Side Diff: src/ast.h

Issue 639123009: Classes: Add basic support for properties (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months 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 | « no previous file | src/full-codegen.h » ('j') | src/full-codegen.cc » ('J')
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 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 // Type feedback information. 1494 // Type feedback information.
1495 void RecordTypeFeedback(TypeFeedbackOracle* oracle); 1495 void RecordTypeFeedback(TypeFeedbackOracle* oracle);
1496 bool IsMonomorphic() { return !receiver_type_.is_null(); } 1496 bool IsMonomorphic() { return !receiver_type_.is_null(); }
1497 Handle<Map> GetReceiverType() { return receiver_type_; } 1497 Handle<Map> GetReceiverType() { return receiver_type_; }
1498 1498
1499 bool IsCompileTimeValue(); 1499 bool IsCompileTimeValue();
1500 1500
1501 void set_emit_store(bool emit_store); 1501 void set_emit_store(bool emit_store);
1502 bool emit_store(); 1502 bool emit_store();
1503 1503
1504 bool is_static() const { return is_static_; }
1505
1504 protected: 1506 protected:
1505 template<class> friend class AstNodeFactory; 1507 template<class> friend class AstNodeFactory;
1506 1508
1507 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value, 1509 ObjectLiteralProperty(Zone* zone, bool is_getter, FunctionLiteral* value,
1508 bool is_static); 1510 bool is_static);
1509 void set_key(Literal* key) { key_ = key; } 1511 void set_key(Literal* key) { key_ = key; }
1510 1512
1511 private: 1513 private:
1512 Literal* key_; 1514 Literal* key_;
1513 Expression* value_; 1515 Expression* value_;
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3621 Zone* zone_; 3623 Zone* zone_;
3622 Visitor visitor_; 3624 Visitor visitor_;
3623 AstValueFactory* ast_value_factory_; 3625 AstValueFactory* ast_value_factory_;
3624 AstNode::IdGen* id_gen_; 3626 AstNode::IdGen* id_gen_;
3625 }; 3627 };
3626 3628
3627 3629
3628 } } // namespace v8::internal 3630 } } // namespace v8::internal
3629 3631
3630 #endif // V8_AST_H_ 3632 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen.h » ('j') | src/full-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698