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

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

Issue 2246083003: AOT: Optimize even large functions. Ensures all calls are optimized static calls, switchable calls … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 4 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/clustered_snapshot.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 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 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 1847
1848 intptr_t NumArgsTested() const; 1848 intptr_t NumArgsTested() const;
1849 1849
1850 intptr_t deopt_id() const { 1850 intptr_t deopt_id() const {
1851 return raw_ptr()->deopt_id_; 1851 return raw_ptr()->deopt_id_;
1852 } 1852 }
1853 1853
1854 bool IsImmutable() const; 1854 bool IsImmutable() const;
1855 1855
1856 void Reset(Zone* zone) const; 1856 void Reset(Zone* zone) const;
1857 void ResetSwitchable(Zone* zone) const;
1857 1858
1858 // Note: only deopts with reasons before Unknown in this list are recorded in 1859 // Note: only deopts with reasons before Unknown in this list are recorded in
1859 // the ICData. All other reasons are used purely for informational messages 1860 // the ICData. All other reasons are used purely for informational messages
1860 // printed during deoptimization itself. 1861 // printed during deoptimization itself.
1861 #define DEOPT_REASONS(V) \ 1862 #define DEOPT_REASONS(V) \
1862 V(BinarySmiOp) \ 1863 V(BinarySmiOp) \
1863 V(BinaryMintOp) \ 1864 V(BinaryMintOp) \
1864 V(DoubleToSmi) \ 1865 V(DoubleToSmi) \
1865 V(CheckSmi) \ 1866 V(CheckSmi) \
1866 V(Unknown) \ 1867 V(Unknown) \
(...skipping 6911 matching lines...) Expand 10 before | Expand all | Expand 10 after
8778 8779
8779 inline void TypeArguments::SetHash(intptr_t value) const { 8780 inline void TypeArguments::SetHash(intptr_t value) const {
8780 // This is only safe because we create a new Smi, which does not cause 8781 // This is only safe because we create a new Smi, which does not cause
8781 // heap allocation. 8782 // heap allocation.
8782 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8783 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8783 } 8784 }
8784 8785
8785 } // namespace dart 8786 } // namespace dart
8786 8787
8787 #endif // VM_OBJECT_H_ 8788 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698