| OLD | NEW |
| 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<Code> ComputeKeyedLoadMonomorphicHandler( | |
| 18 Handle<Map> receiver_map, ExtraICState extra_ic_state); | |
| 19 | |
| 20 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( | 17 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( |
| 21 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode); | 18 Handle<Map> receiver_map, KeyedAccessStoreMode store_mode); |
| 22 static void ComputeKeyedStorePolymorphicHandlers( | 19 static void ComputeKeyedStorePolymorphicHandlers( |
| 23 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, | 20 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, |
| 24 CodeHandleList* handlers, KeyedAccessStoreMode store_mode); | 21 CodeHandleList* handlers, KeyedAccessStoreMode store_mode); |
| 25 | 22 |
| 26 // Helpers | 23 // Helpers |
| 27 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler | 24 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler |
| 28 // and make the helpers private. | 25 // and make the helpers private. |
| 29 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 26 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 41 MapHandleList* transitioned_maps, | 38 MapHandleList* transitioned_maps, |
| 42 CodeHandleList* handlers, | 39 CodeHandleList* handlers, |
| 43 KeyedAccessStoreMode store_mode); | 40 KeyedAccessStoreMode store_mode); |
| 44 }; | 41 }; |
| 45 | 42 |
| 46 | 43 |
| 47 } // namespace internal | 44 } // namespace internal |
| 48 } // namespace v8 | 45 } // namespace v8 |
| 49 | 46 |
| 50 #endif // V8_IC_IC_COMPILER_H_ | 47 #endif // V8_IC_IC_COMPILER_H_ |
| OLD | NEW |