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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 | 808 |
809 | 809 |
810 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, | 810 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, |
811 ExtraICState extra_state) { | 811 ExtraICState extra_state) { |
812 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); | 812 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); |
813 } | 813 } |
814 | 814 |
815 | 815 |
816 Handle<Code> LoadIC::megamorphic_stub() { | 816 Handle<Code> LoadIC::megamorphic_stub() { |
817 if (kind() == Code::LOAD_IC) { | 817 if (kind() == Code::LOAD_IC) { |
818 return PropertyICCompiler::ComputeLoad(isolate(), MEGAMORPHIC, | 818 MegamorphicLoadStub stub(isolate(), State(extra_ic_state())); |
819 extra_ic_state()); | 819 return stub.GetCode(); |
820 } else { | 820 } else { |
821 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); | 821 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); |
822 return KeyedLoadIC::generic_stub(isolate()); | 822 return KeyedLoadIC::generic_stub(isolate()); |
823 } | 823 } |
824 } | 824 } |
825 | 825 |
826 | 826 |
827 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, | 827 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, |
828 ExtraICState extra_state) { | 828 ExtraICState extra_state) { |
829 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); | 829 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); |
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 static const Address IC_utilities[] = { | 3205 static const Address IC_utilities[] = { |
3206 #define ADDR(name) FUNCTION_ADDR(name), | 3206 #define ADDR(name) FUNCTION_ADDR(name), |
3207 IC_UTIL_LIST(ADDR) NULL | 3207 IC_UTIL_LIST(ADDR) NULL |
3208 #undef ADDR | 3208 #undef ADDR |
3209 }; | 3209 }; |
3210 | 3210 |
3211 | 3211 |
3212 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 3212 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
3213 } | 3213 } |
3214 } // namespace v8::internal | 3214 } // namespace v8::internal |
OLD | NEW |