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); | |
654 | 652 |
655 protected: | 653 protected: |
656 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } | 654 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } |
657 | 655 |
658 virtual Handle<Code> ComputeStoreMonomorphic(LookupResult* lookup, | 656 virtual Handle<Code> ComputeStoreMonomorphic(LookupResult* lookup, |
659 StrictModeFlag strict_mode, | 657 StrictModeFlag strict_mode, |
660 Handle<JSObject> receiver, | 658 Handle<JSObject> receiver, |
661 Handle<String> name, | 659 Handle<String> name, |
662 Handle<Object> value); | 660 Handle<Object> value); |
663 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code) { } | 661 virtual void UpdateMegamorphicCache(Map* map, Name* name, Code* code) { } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); | 857 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); |
860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); | 858 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); |
861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
862 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
863 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
864 | 862 |
865 | 863 |
866 } } // namespace v8::internal | 864 } } // namespace v8::internal |
867 | 865 |
868 #endif // V8_IC_H_ | 866 #endif // V8_IC_H_ |
OLD | NEW |