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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 } | 580 } |
581 static Handle<Code> pre_monomorphic_stub(Isolate* isolate, | 581 static Handle<Code> pre_monomorphic_stub(Isolate* isolate, |
582 LanguageMode language_mode) { | 582 LanguageMode language_mode) { |
583 if (is_strict(language_mode)) { | 583 if (is_strict(language_mode)) { |
584 return isolate->builtins()->KeyedStoreIC_PreMonomorphic_Strict(); | 584 return isolate->builtins()->KeyedStoreIC_PreMonomorphic_Strict(); |
585 } else { | 585 } else { |
586 return isolate->builtins()->KeyedStoreIC_PreMonomorphic(); | 586 return isolate->builtins()->KeyedStoreIC_PreMonomorphic(); |
587 } | 587 } |
588 } | 588 } |
589 | 589 |
590 Handle<Code> StoreElementStub(Handle<JSObject> receiver, | 590 Handle<Code> StoreElementStub(Handle<Map> receiver_map, |
591 KeyedAccessStoreMode store_mode); | 591 KeyedAccessStoreMode store_mode); |
592 | 592 |
593 private: | 593 private: |
594 inline void set_target(Code* code); | 594 inline void set_target(Code* code); |
595 | 595 |
596 static void Clear(Isolate* isolate, Address address, Code* target, | 596 static void Clear(Isolate* isolate, Address address, Code* target, |
597 Address constant_pool); | 597 Address constant_pool); |
598 | 598 |
599 Handle<Map> ComputeTransitionedMap(Handle<Map> map, | 599 Handle<Map> ComputeTransitionedMap(Handle<Map> map, |
600 KeyedAccessStoreMode store_mode); | 600 KeyedAccessStoreMode store_mode); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 | 675 |
676 | 676 |
677 // Helper for BinaryOpIC and CompareIC. | 677 // Helper for BinaryOpIC and CompareIC. |
678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 678 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 679 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
680 | 680 |
681 } | 681 } |
682 } // namespace v8::internal | 682 } // namespace v8::internal |
683 | 683 |
684 #endif // V8_IC_H_ | 684 #endif // V8_IC_H_ |
OLD | NEW |