| 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 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 | 603 |
| 604 friend class IC; | 604 friend class IC; |
| 605 }; | 605 }; |
| 606 | 606 |
| 607 | 607 |
| 608 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 608 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
| 609 class BinaryOpIC : public IC { | 609 class BinaryOpIC : public IC { |
| 610 public: | 610 public: |
| 611 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} | 611 explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) {} |
| 612 | 612 |
| 613 static Builtins::JavaScript TokenToJSBuiltin(Token::Value op, | 613 static int TokenToContextIndex(Token::Value op, Strength strength); |
| 614 Strength strength); | |
| 615 | 614 |
| 616 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, | 615 MaybeHandle<Object> Transition(Handle<AllocationSite> allocation_site, |
| 617 Handle<Object> left, | 616 Handle<Object> left, |
| 618 Handle<Object> right) WARN_UNUSED_RESULT; | 617 Handle<Object> right) WARN_UNUSED_RESULT; |
| 619 }; | 618 }; |
| 620 | 619 |
| 621 | 620 |
| 622 class CompareIC : public IC { | 621 class CompareIC : public IC { |
| 623 public: | 622 public: |
| 624 CompareIC(Isolate* isolate, Token::Value op) | 623 CompareIC(Isolate* isolate, Token::Value op) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 | 675 |
| 677 | 676 |
| 678 // Helper for BinaryOpIC and CompareIC. | 677 // Helper for BinaryOpIC and CompareIC. |
| 679 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
| 680 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
| 681 | 680 |
| 682 } | 681 } |
| 683 } // namespace v8::internal | 682 } // namespace v8::internal |
| 684 | 683 |
| 685 #endif // V8_IC_H_ | 684 #endif // V8_IC_H_ |
| OLD | NEW |