OLD | NEW |
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/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 OBJECT, // JSObject | 839 OBJECT, // JSObject |
840 KNOWN_OBJECT, // JSObject with specific map (faster check) | 840 KNOWN_OBJECT, // JSObject with specific map (faster check) |
841 GENERIC | 841 GENERIC |
842 }; | 842 }; |
843 | 843 |
844 static State NewInputState(State old_state, Handle<Object> value); | 844 static State NewInputState(State old_state, Handle<Object> value); |
845 | 845 |
846 static Type* StateToType(Zone* zone, State state, | 846 static Type* StateToType(Zone* zone, State state, |
847 Handle<Map> map = Handle<Map>()); | 847 Handle<Map> map = Handle<Map>()); |
848 | 848 |
849 static void StubInfoToType(uint32_t stub_key, Type** left_type, | |
850 Type** right_type, Type** overall_type, | |
851 Handle<Map> map, Zone* zone); | |
852 | |
853 CompareIC(Isolate* isolate, Token::Value op) | 849 CompareIC(Isolate* isolate, Token::Value op) |
854 : IC(EXTRA_CALL_FRAME, isolate), op_(op) {} | 850 : IC(EXTRA_CALL_FRAME, isolate), op_(op) {} |
855 | 851 |
856 // Update the inline cache for the given operands. | 852 // Update the inline cache for the given operands. |
857 Code* UpdateCaches(Handle<Object> x, Handle<Object> y); | 853 Code* UpdateCaches(Handle<Object> x, Handle<Object> y); |
858 | 854 |
859 | 855 |
860 // Factory method for getting an uninitialized compare stub. | 856 // Factory method for getting an uninitialized compare stub. |
861 static Handle<Code> GetUninitialized(Isolate* isolate, Token::Value op); | 857 static Handle<Code> GetUninitialized(Isolate* isolate, Token::Value op); |
862 | 858 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 | 927 |
932 // Support functions for interceptor handlers. | 928 // Support functions for interceptor handlers. |
933 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 929 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
934 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 930 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
935 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 931 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
936 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 932 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
937 } | 933 } |
938 } // namespace v8::internal | 934 } // namespace v8::internal |
939 | 935 |
940 #endif // V8_IC_H_ | 936 #endif // V8_IC_H_ |
OLD | NEW |