| 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/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 675 |
| 676 friend class IC; | 676 friend class IC; |
| 677 }; | 677 }; |
| 678 | 678 |
| 679 | 679 |
| 680 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 680 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
| 681 class BinaryOpIC : public IC { | 681 class BinaryOpIC : public IC { |
| 682 public: | 682 public: |
| 683 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} | 683 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} |
| 684 | 684 |
| 685 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op); | 685 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op, |
| 686 LanguageMode language_mode); |
| 686 | 687 |
| 687 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, | 688 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, |
| 688 Handle<Object> left, | 689 Handle<Object> left, |
| 689 Handle<Object> right) WARN_UNUSED_RESULT; | 690 Handle<Object> right) WARN_UNUSED_RESULT; |
| 690 }; | 691 }; |
| 691 | 692 |
| 692 | 693 |
| 693 class CompareIC : public IC { | 694 class CompareIC : public IC { |
| 694 public: | 695 public: |
| 695 CompareIC(Isolate* isolate, Token::Value op) | 696 CompareIC(Isolate* isolate, Token::Value op) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 | 766 |
| 766 // Support functions for interceptor handlers. | 767 // Support functions for interceptor handlers. |
| 767 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
| 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
| 769 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
| 770 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
| 771 } | 772 } |
| 772 } // namespace v8::internal | 773 } // namespace v8::internal |
| 773 | 774 |
| 774 #endif // V8_IC_H_ | 775 #endif // V8_IC_H_ |
| OLD | NEW |