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

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

Issue 2307673002: Remove dead code for writing ICData entries. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | runtime/vm/object_service.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 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 static intptr_t EntryPointIndexFor(intptr_t num_args) { 2059 static intptr_t EntryPointIndexFor(intptr_t num_args) {
2060 return (num_args + 1); 2060 return (num_args + 1);
2061 } 2061 }
2062 2062
2063 bool IsUsedAt(intptr_t i) const; 2063 bool IsUsedAt(intptr_t i) const;
2064 2064
2065 void GetUsedCidsForTwoArgs(GrowableArray<intptr_t>* first, 2065 void GetUsedCidsForTwoArgs(GrowableArray<intptr_t>* first,
2066 GrowableArray<intptr_t>* second) const; 2066 GrowableArray<intptr_t>* second) const;
2067 2067
2068 void PrintToJSONArray(const JSONArray& jsarray, 2068 void PrintToJSONArray(const JSONArray& jsarray,
2069 TokenPosition token_pos, 2069 TokenPosition token_pos) const;
2070 bool is_static_call) const;
2071 void PrintToJSONArrayNew(const JSONArray& jsarray,
2072 TokenPosition token_pos,
2073 bool is_static_call) const;
2074 2070
2075 // Initialize the preallocated empty ICData entry arrays. 2071 // Initialize the preallocated empty ICData entry arrays.
2076 static void InitOnce(); 2072 static void InitOnce();
2077 2073
2078 enum { 2074 enum {
2079 kCachedICDataArrayCount = 4 2075 kCachedICDataArrayCount = 4
2080 }; 2076 };
2081 2077
2082 #if defined(TAG_IC_DATA) 2078 #if defined(TAG_IC_DATA)
2083 void set_tag(intptr_t value) const; 2079 void set_tag(intptr_t value) const;
(...skipping 6695 matching lines...) Expand 10 before | Expand all | Expand 10 after
8779 8775
8780 inline void TypeArguments::SetHash(intptr_t value) const { 8776 inline void TypeArguments::SetHash(intptr_t value) const {
8781 // This is only safe because we create a new Smi, which does not cause 8777 // This is only safe because we create a new Smi, which does not cause
8782 // heap allocation. 8778 // heap allocation.
8783 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8779 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8784 } 8780 }
8785 8781
8786 } // namespace dart 8782 } // namespace dart
8787 8783
8788 #endif // VM_OBJECT_H_ 8784 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698