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

Side by Side Diff: src/objects.h

Issue 753993003: Use weak cells in map checks in polymorphic ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6168 matching lines...) Expand 10 before | Expand all | Expand 10 after
6179 CompilationInfo* info); 6179 CompilationInfo* info);
6180 6180
6181 static void AddDependentCode(Handle<Map> map, 6181 static void AddDependentCode(Handle<Map> map,
6182 DependentCode::DependencyGroup group, 6182 DependentCode::DependencyGroup group,
6183 Handle<Code> code); 6183 Handle<Code> code);
6184 static void AddDependentIC(Handle<Map> map, 6184 static void AddDependentIC(Handle<Map> map,
6185 Handle<Code> stub); 6185 Handle<Code> stub);
6186 6186
6187 bool IsMapInArrayPrototypeChain(); 6187 bool IsMapInArrayPrototypeChain();
6188 6188
6189 static Handle<WeakCell> WeakCellForMap(Handle<Map> map);
6190
6189 // Dispatched behavior. 6191 // Dispatched behavior.
6190 DECLARE_PRINTER(Map) 6192 DECLARE_PRINTER(Map)
6191 DECLARE_VERIFIER(Map) 6193 DECLARE_VERIFIER(Map)
6192 6194
6193 #ifdef VERIFY_HEAP 6195 #ifdef VERIFY_HEAP
6194 void DictionaryMapVerify(); 6196 void DictionaryMapVerify();
6195 void VerifyOmittedMapChecks(); 6197 void VerifyOmittedMapChecks();
6196 #endif 6198 #endif
6197 6199
6198 inline int visitor_id(); 6200 inline int visitor_id();
(...skipping 4778 matching lines...) Expand 10 before | Expand all | Expand 10 after
10977 } else { 10979 } else {
10978 value &= ~(1 << bit_position); 10980 value &= ~(1 << bit_position);
10979 } 10981 }
10980 return value; 10982 return value;
10981 } 10983 }
10982 }; 10984 };
10983 10985
10984 } } // namespace v8::internal 10986 } } // namespace v8::internal
10985 10987
10986 #endif // V8_OBJECTS_H_ 10988 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698