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

Side by Side Diff: src/type-info.h

Issue 1108013003: Introduce --zap-cpp-pointers (off by default) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes Created 3 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/regexp/regexp-macro-assembler.cc ('k') | src/type-info.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_TYPE_INFO_H_ 5 #ifndef V8_TYPE_INFO_H_
6 #define V8_TYPE_INFO_H_ 6 #define V8_TYPE_INFO_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast-types.h" 9 #include "src/ast/ast-types.h"
10 #include "src/contexts.h" 10 #include "src/contexts.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 private: 86 private:
87 // Returns true if there is at least one string map and if 87 // Returns true if there is at least one string map and if
88 // all maps are string maps. 88 // all maps are string maps.
89 bool HasOnlyStringMaps(SmallMapList* receiver_types); 89 bool HasOnlyStringMaps(SmallMapList* receiver_types);
90 90
91 void SetInfo(TypeFeedbackId id, Object* target); 91 void SetInfo(TypeFeedbackId id, Object* target);
92 92
93 void BuildDictionary(Handle<Code> code); 93 void BuildDictionary(Handle<Code> code);
94 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); 94 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos);
95 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); 95 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos);
96 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 96 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, Address old_code_address,
97 Code* old_code, 97 Address new_code_address);
98 Code* new_code);
99 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 98 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
100 99
101 // Returns an element from the backing store. Returns undefined if 100 // Returns an element from the backing store. Returns undefined if
102 // there is no information. 101 // there is no information.
103 Handle<Object> GetInfo(TypeFeedbackId id); 102 Handle<Object> GetInfo(TypeFeedbackId id);
104 103
105 // Returns an element from the type feedback vector. Returns undefined 104 // Returns an element from the type feedback vector. Returns undefined
106 // if there is no information. 105 // if there is no information.
107 Handle<Object> GetInfo(FeedbackSlot slot); 106 Handle<Object> GetInfo(FeedbackSlot slot);
108 107
109 private: 108 private:
110 Handle<Context> native_context_; 109 Handle<Context> native_context_;
111 Isolate* isolate_; 110 Isolate* isolate_;
112 Zone* zone_; 111 Zone* zone_;
113 Handle<UnseededNumberDictionary> dictionary_; 112 Handle<UnseededNumberDictionary> dictionary_;
114 Handle<FeedbackVector> feedback_vector_; 113 Handle<FeedbackVector> feedback_vector_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 115 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
117 }; 116 };
118 117
119 } // namespace internal 118 } // namespace internal
120 } // namespace v8 119 } // namespace v8
121 120
122 #endif // V8_TYPE_INFO_H_ 121 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/regexp/regexp-macro-assembler.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698