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 15 matching lines...) Expand all Loading... |
26 Handle<Map> receiver_map, ExtraICState extra_ic_state); | 26 Handle<Map> receiver_map, ExtraICState extra_ic_state); |
27 | 27 |
28 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( | 28 static Handle<Code> ComputeKeyedStoreMonomorphicHandler( |
29 Handle<Map> receiver_map, LanguageMode language_mode, | 29 Handle<Map> receiver_map, LanguageMode language_mode, |
30 KeyedAccessStoreMode store_mode); | 30 KeyedAccessStoreMode store_mode); |
31 static void ComputeKeyedStorePolymorphicHandlers( | 31 static void ComputeKeyedStorePolymorphicHandlers( |
32 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, | 32 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, |
33 CodeHandleList* handlers, KeyedAccessStoreMode store_mode, | 33 CodeHandleList* handlers, KeyedAccessStoreMode store_mode, |
34 LanguageMode language_mode); | 34 LanguageMode language_mode); |
35 | 35 |
36 // Compare nil | |
37 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, | |
38 CompareNilICStub* stub); | |
39 | |
40 // Helpers | 36 // Helpers |
41 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler | 37 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler |
42 // and make the helpers private. | 38 // and make the helpers private. |
43 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 39 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
44 LanguageMode language_mode); | 40 LanguageMode language_mode); |
45 | 41 |
46 | 42 |
47 private: | 43 private: |
48 PropertyICCompiler(Isolate* isolate, Code::Kind kind, | 44 PropertyICCompiler(Isolate* isolate, Code::Kind kind, |
49 ExtraICState extra_ic_state = kNoExtraICState, | 45 ExtraICState extra_ic_state = kNoExtraICState, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 92 } |
97 | 93 |
98 const ExtraICState extra_ic_state_; | 94 const ExtraICState extra_ic_state_; |
99 }; | 95 }; |
100 | 96 |
101 | 97 |
102 } // namespace internal | 98 } // namespace internal |
103 } // namespace v8 | 99 } // namespace v8 |
104 | 100 |
105 #endif // V8_IC_IC_COMPILER_H_ | 101 #endif // V8_IC_IC_COMPILER_H_ |
OLD | NEW |