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

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

Issue 2538693002: Revert of [ic] Use validity cells to protect keyed element stores against object's prototype chain… (Closed)
Patch Set: 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-compiler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_IC_COMPILER_H_ 5 #ifndef V8_IC_IC_COMPILER_H_
6 #define V8_IC_IC_COMPILER_H_ 6 #define V8_IC_IC_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 13
14 class PropertyICCompiler : public PropertyAccessCompiler { 14 class PropertyICCompiler : public PropertyAccessCompiler {
15 public: 15 public:
16 // Keyed 16 // Keyed
17 static Handle<Object> ComputeKeyedStoreMonomorphicHandler( 17 static Handle<Code> ComputeKeyedStoreMonomorphicHandler(
18 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode); 18 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode);
19 static void ComputeKeyedStorePolymorphicHandlers( 19 static void ComputeKeyedStorePolymorphicHandlers(
20 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, 20 MapHandleList* receiver_maps, MapHandleList* transitioned_maps,
21 List<Handle<Object>>* handlers, KeyedAccessStoreMode store_mode); 21 CodeHandleList* handlers, KeyedAccessStoreMode store_mode);
22 22
23 private: 23 private:
24 explicit PropertyICCompiler(Isolate* isolate) 24 explicit PropertyICCompiler(Isolate* isolate)
25 : PropertyAccessCompiler(isolate, Code::KEYED_STORE_IC, 25 : PropertyAccessCompiler(isolate, Code::KEYED_STORE_IC,
26 kCacheOnReceiver) {} 26 kCacheOnReceiver) {}
27 27
28 Handle<Object> CompileKeyedStoreMonomorphicHandler( 28 Handle<Code> CompileKeyedStoreMonomorphicHandler(
29 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode); 29 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode);
30 void CompileKeyedStorePolymorphicHandlers(MapHandleList* receiver_maps, 30 void CompileKeyedStorePolymorphicHandlers(MapHandleList* receiver_maps,
31 MapHandleList* transitioned_maps, 31 MapHandleList* transitioned_maps,
32 List<Handle<Object>>* handlers, 32 CodeHandleList* handlers,
33 KeyedAccessStoreMode store_mode); 33 KeyedAccessStoreMode store_mode);
34 }; 34 };
35 35
36 36
37 } // namespace internal 37 } // namespace internal
38 } // namespace v8 38 } // namespace v8
39 39
40 #endif // V8_IC_IC_COMPILER_H_ 40 #endif // V8_IC_IC_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698