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

Side by Side Diff: src/ic/ic.h

Issue 2534613002: [ic] Use validity cells to protect keyed element stores against object's prototype chain modificati… (Closed)
Patch Set: The fix Created 4 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_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Configure the vector for MONOMORPHIC. 113 // Configure the vector for MONOMORPHIC.
114 void ConfigureVectorState(Handle<Name> name, Handle<Map> map, 114 void ConfigureVectorState(Handle<Name> name, Handle<Map> map,
115 Handle<Object> handler); 115 Handle<Object> handler);
116 // Configure the vector for POLYMORPHIC. 116 // Configure the vector for POLYMORPHIC.
117 void ConfigureVectorState(Handle<Name> name, MapHandleList* maps, 117 void ConfigureVectorState(Handle<Name> name, MapHandleList* maps,
118 List<Handle<Object>>* handlers); 118 List<Handle<Object>>* handlers);
119 // Configure the vector for POLYMORPHIC with transitions (only for element 119 // Configure the vector for POLYMORPHIC with transitions (only for element
120 // keyed stores). 120 // keyed stores).
121 void ConfigureVectorState(MapHandleList* maps, 121 void ConfigureVectorState(MapHandleList* maps,
122 MapHandleList* transitioned_maps, 122 MapHandleList* transitioned_maps,
123 CodeHandleList* handlers); 123 List<Handle<Object>>* handlers);
124 124
125 char TransitionMarkFromState(IC::State state); 125 char TransitionMarkFromState(IC::State state);
126 void TraceIC(const char* type, Handle<Object> name); 126 void TraceIC(const char* type, Handle<Object> name);
127 void TraceIC(const char* type, Handle<Object> name, State old_state, 127 void TraceIC(const char* type, Handle<Object> name, State old_state,
128 State new_state); 128 State new_state);
129 129
130 MaybeHandle<Object> TypeError(MessageTemplate::Template, 130 MaybeHandle<Object> TypeError(MessageTemplate::Template,
131 Handle<Object> object, Handle<Object> key); 131 Handle<Object> object, Handle<Object> key);
132 MaybeHandle<Object> ReferenceError(Handle<Name> name); 132 MaybeHandle<Object> ReferenceError(Handle<Name> name);
133 133
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 514
515 // Helper for BinaryOpIC and CompareIC. 515 // Helper for BinaryOpIC and CompareIC.
516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
517 void PatchInlinedSmiCode(Isolate* isolate, Address address, 517 void PatchInlinedSmiCode(Isolate* isolate, Address address,
518 InlinedSmiCheck check); 518 InlinedSmiCheck check);
519 519
520 } // namespace internal 520 } // namespace internal
521 } // namespace v8 521 } // namespace v8
522 522
523 #endif // V8_IC_H_ 523 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698