| 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 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 Handle<Map> map, Handle<Code> handler, | 25 Handle<Map> map, Handle<Code> handler, |
| 26 ExtraICState extra_ic_state); | 26 ExtraICState extra_ic_state); |
| 27 static Handle<Code> ComputePolymorphic(Code::Kind kind, MapHandleList* maps, | 27 static Handle<Code> ComputePolymorphic(Code::Kind kind, MapHandleList* maps, |
| 28 CodeHandleList* handlers, | 28 CodeHandleList* handlers, |
| 29 int number_of_valid_maps, | 29 int number_of_valid_maps, |
| 30 Handle<Name> name, | 30 Handle<Name> name, |
| 31 ExtraICState extra_ic_state); | 31 ExtraICState extra_ic_state); |
| 32 | 32 |
| 33 // Keyed | 33 // Keyed |
| 34 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( | 34 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( |
| 35 Handle<Map> receiver_map); | 35 Handle<Map> receiver_map, ExtraICState extra_ic_state); |
| 36 | 36 |
| 37 static Handle<Code> ComputeKeyedStoreMonomorphic( | 37 static Handle<Code> ComputeKeyedStoreMonomorphic( |
| 38 Handle<Map> receiver_map, LanguageMode language_mode, | 38 Handle<Map> receiver_map, LanguageMode language_mode, |
| 39 KeyedAccessStoreMode store_mode); | 39 KeyedAccessStoreMode store_mode); |
| 40 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps); | 40 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps, |
| 41 LanguageMode language_mode); |
| 41 static Handle<Code> ComputeKeyedStorePolymorphic( | 42 static Handle<Code> ComputeKeyedStorePolymorphic( |
| 42 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, | 43 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, |
| 43 LanguageMode language_mode); | 44 LanguageMode language_mode); |
| 44 | 45 |
| 45 // Compare nil | 46 // Compare nil |
| 46 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, | 47 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, |
| 47 CompareNilICStub* stub); | 48 CompareNilICStub* stub); |
| 48 | 49 |
| 49 // Helpers | 50 // Helpers |
| 50 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler | 51 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 111 } |
| 111 | 112 |
| 112 const ExtraICState extra_ic_state_; | 113 const ExtraICState extra_ic_state_; |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 | 116 |
| 116 } | 117 } |
| 117 } // namespace v8::internal | 118 } // namespace v8::internal |
| 118 | 119 |
| 119 #endif // V8_IC_IC_COMPILER_H_ | 120 #endif // V8_IC_IC_COMPILER_H_ |
| OLD | NEW |