OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 // Code generators for stub routines. Only called once at startup. | 642 // Code generators for stub routines. Only called once at startup. |
643 static void GenerateInitialize(MacroAssembler* masm) { | 643 static void GenerateInitialize(MacroAssembler* masm) { |
644 GenerateMiss(masm, MISS); | 644 GenerateMiss(masm, MISS); |
645 } | 645 } |
646 static void GenerateMiss(MacroAssembler* masm, ICMissMode force_generic); | 646 static void GenerateMiss(MacroAssembler* masm, ICMissMode force_generic); |
647 static void GenerateSlow(MacroAssembler* masm); | 647 static void GenerateSlow(MacroAssembler* masm); |
648 static void GenerateRuntimeSetProperty(MacroAssembler* masm, | 648 static void GenerateRuntimeSetProperty(MacroAssembler* masm, |
649 StrictModeFlag strict_mode); | 649 StrictModeFlag strict_mode); |
650 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode); | 650 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode); |
651 static void GenerateNonStrictArguments(MacroAssembler* masm); | 651 static void GenerateNonStrictArguments(MacroAssembler* masm); |
| 652 static void GenerateTransitionElementsSmiToDouble(MacroAssembler* masm); |
| 653 static void GenerateTransitionElementsDoubleToObject(MacroAssembler* masm); |
652 | 654 |
653 protected: | 655 protected: |
654 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } | 656 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } |
655 | 657 |
656 virtual Handle<Code> ComputeStoreMonomorphic(LookupResult* lookup, | 658 virtual Handle<Code> ComputeStoreMonomorphic(LookupResult* lookup, |
657 StrictModeFlag strict_mode, | 659 StrictModeFlag strict_mode, |
658 Handle<JSObject> receiver, | 660 Handle<JSObject> receiver, |
659 Handle<String> name, | 661 Handle<String> name, |
660 Handle<Object> value); | 662 Handle<Object> value); |
661 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code) { } | 663 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code) { } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); | 859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); |
858 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); | 860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); |
859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 862 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 863 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
862 | 864 |
863 | 865 |
864 } } // namespace v8::internal | 866 } } // namespace v8::internal |
865 | 867 |
866 #endif // V8_IC_H_ | 868 #endif // V8_IC_H_ |
OLD | NEW |