| OLD | NEW |
| 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_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
| 6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
| 10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
| (...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1997 | 1997 |
| 1998 Expression* expression() const { return expression_; } | 1998 Expression* expression() const { return expression_; } |
| 1999 ZoneList<Expression*>* arguments() const { return arguments_; } | 1999 ZoneList<Expression*>* arguments() const { return arguments_; } |
| 2000 | 2000 |
| 2001 void set_expression(Expression* e) { expression_ = e; } | 2001 void set_expression(Expression* e) { expression_ = e; } |
| 2002 | 2002 |
| 2003 // Type feedback information. | 2003 // Type feedback information. |
| 2004 void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec, | 2004 void AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec, |
| 2005 FeedbackVectorSlotCache* cache) override { | 2005 FeedbackVectorSlotCache* cache) override { |
| 2006 callnew_feedback_slot_ = spec->AddGeneralSlot(); | 2006 callnew_feedback_slot_ = spec->AddGeneralSlot(); |
| 2007 // Construct calls have two slots, one right after the other. |
| 2008 // The second slot stores the call count for monomorphic calls. |
| 2009 spec->AddGeneralSlot(); |
| 2007 } | 2010 } |
| 2008 | 2011 |
| 2009 FeedbackVectorSlot CallNewFeedbackSlot() { | 2012 FeedbackVectorSlot CallNewFeedbackSlot() { |
| 2010 DCHECK(!callnew_feedback_slot_.IsInvalid()); | 2013 DCHECK(!callnew_feedback_slot_.IsInvalid()); |
| 2011 return callnew_feedback_slot_; | 2014 return callnew_feedback_slot_; |
| 2012 } | 2015 } |
| 2013 | 2016 |
| 2014 bool IsMonomorphic() override { return is_monomorphic_; } | 2017 bool IsMonomorphic() override { return is_monomorphic_; } |
| 2015 Handle<JSFunction> target() const { return target_; } | 2018 Handle<JSFunction> target() const { return target_; } |
| 2016 Handle<AllocationSite> allocation_site() const { | 2019 Handle<AllocationSite> allocation_site() const { |
| (...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3568 : NULL; \ | 3571 : NULL; \ |
| 3569 } | 3572 } |
| 3570 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3573 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3571 #undef DECLARE_NODE_FUNCTIONS | 3574 #undef DECLARE_NODE_FUNCTIONS |
| 3572 | 3575 |
| 3573 | 3576 |
| 3574 } // namespace internal | 3577 } // namespace internal |
| 3575 } // namespace v8 | 3578 } // namespace v8 |
| 3576 | 3579 |
| 3577 #endif // V8_AST_AST_H_ | 3580 #endif // V8_AST_AST_H_ |
| OLD | NEW |