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

Side by Side Diff: src/ast/ast.h

Issue 1969783002: Collect call counts for constructor calls, too. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed cctest.status, and addressed mips64 comment. Created 4 years, 7 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
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('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_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
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
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_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698