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

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

Issue 335173002: Save ICData of unoptimized code in the function, thus preserving it across repated unoptimized comp… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
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 VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define 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 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 // owner of the clone is new_owner. 1987 // owner of the clone is new_owner.
1988 RawFunction* Clone(const Class& new_owner) const; 1988 RawFunction* Clone(const Class& new_owner) const;
1989 1989
1990 // Slow function, use in asserts to track changes in important library 1990 // Slow function, use in asserts to track changes in important library
1991 // functions. 1991 // functions.
1992 int32_t SourceFingerprint() const; 1992 int32_t SourceFingerprint() const;
1993 1993
1994 // Return false and report an error if the fingerprint does not match. 1994 // Return false and report an error if the fingerprint does not match.
1995 bool CheckSourceFingerprint(int32_t fp) const; 1995 bool CheckSourceFingerprint(int32_t fp) const;
1996 1996
1997 void SetSavedICData(
1998 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data) const;
1999 RawArray* ic_data_array() const;
2000 void ClearICData() const;
2001
1997 static const int kCtorPhaseInit = 1 << 0; 2002 static const int kCtorPhaseInit = 1 << 0;
1998 static const int kCtorPhaseBody = 1 << 1; 2003 static const int kCtorPhaseBody = 1 << 1;
1999 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody); 2004 static const int kCtorPhaseAll = (kCtorPhaseInit | kCtorPhaseBody);
2000 2005
2001 private: 2006 private:
2007 void set_ic_data_array(const Array& value) const;
2008
2002 enum KindTagBits { 2009 enum KindTagBits {
2003 kKindTagPos = 0, 2010 kKindTagPos = 0,
2004 kKindTagSize = 4, 2011 kKindTagSize = 4,
2005 kStaticBit = kKindTagPos + kKindTagSize, // = 4 2012 kStaticBit = kKindTagPos + kKindTagSize, // = 4
2006 kConstBit = 5, 2013 kConstBit = 5,
2007 kAbstractBit = 6, 2014 kAbstractBit = 6,
2008 kVisibleBit = 7, 2015 kVisibleBit = 7,
2009 kOptimizableBit = 8, 2016 kOptimizableBit = 8,
2010 kInlinableBit = 9, 2017 kInlinableBit = 9,
2011 kIntrinsicBit = 10, 2018 kIntrinsicBit = 10,
(...skipping 5103 matching lines...) Expand 10 before | Expand all | Expand 10 after
7115 7122
7116 7123
7117 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7124 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7118 intptr_t index) { 7125 intptr_t index) {
7119 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7126 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7120 } 7127 }
7121 7128
7122 } // namespace dart 7129 } // namespace dart
7123 7130
7124 #endif // VM_OBJECT_H_ 7131 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698