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

Side by Side Diff: runtime/vm/object.h

Issue 2716593002: Propagate this-specialization to regular (megamorphic) calls (Closed)
Patch Set: Add new Canonicalize call to make use of type data Created 3 years, 9 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 | « runtime/vm/jit_optimizer.cc ('k') | runtime/vm/object.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 void GetOneClassCheckAt(intptr_t index, 2002 void GetOneClassCheckAt(intptr_t index,
2003 intptr_t* class_id, 2003 intptr_t* class_id,
2004 Function* target) const; 2004 Function* target) const;
2005 // Only for 'num_args_checked == 1'. 2005 // Only for 'num_args_checked == 1'.
2006 intptr_t GetCidAt(intptr_t index) const; 2006 intptr_t GetCidAt(intptr_t index) const;
2007 2007
2008 intptr_t GetReceiverClassIdAt(intptr_t index) const; 2008 intptr_t GetReceiverClassIdAt(intptr_t index) const;
2009 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const; 2009 intptr_t GetClassIdAt(intptr_t index, intptr_t arg_nr) const;
2010 2010
2011 RawFunction* GetTargetAt(intptr_t index) const; 2011 RawFunction* GetTargetAt(intptr_t index) const;
2012 RawFunction* GetTargetForReceiverClassId(intptr_t class_id) const; 2012 RawFunction* GetTargetForReceiverClassId(intptr_t class_id,
2013 intptr_t* count_return) const;
2013 2014
2014 RawObject* GetTargetOrCodeAt(intptr_t index) const; 2015 RawObject* GetTargetOrCodeAt(intptr_t index) const;
2015 void SetCodeAt(intptr_t index, const Code& value) const; 2016 void SetCodeAt(intptr_t index, const Code& value) const;
2016 void SetEntryPointAt(intptr_t index, const Smi& value) const; 2017 void SetEntryPointAt(intptr_t index, const Smi& value) const;
2017 2018
2018 void IncrementCountAt(intptr_t index, intptr_t value) const; 2019 void IncrementCountAt(intptr_t index, intptr_t value) const;
2019 void SetCountAt(intptr_t index, intptr_t value) const; 2020 void SetCountAt(intptr_t index, intptr_t value) const;
2020 intptr_t GetCountAt(intptr_t index) const; 2021 intptr_t GetCountAt(intptr_t index) const;
2021 intptr_t AggregateCount() const; 2022 intptr_t AggregateCount() const;
2022 2023
(...skipping 6894 matching lines...) Expand 10 before | Expand all | Expand 10 after
8917 8918
8918 inline void TypeArguments::SetHash(intptr_t value) const { 8919 inline void TypeArguments::SetHash(intptr_t value) const {
8919 // This is only safe because we create a new Smi, which does not cause 8920 // This is only safe because we create a new Smi, which does not cause
8920 // heap allocation. 8921 // heap allocation.
8921 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8922 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8922 } 8923 }
8923 8924
8924 } // namespace dart 8925 } // namespace dart
8925 8926
8926 #endif // RUNTIME_VM_OBJECT_H_ 8927 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/jit_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698