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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 | 806 |
807 | 807 |
808 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, | 808 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, |
809 ExtraICState extra_state) { | 809 ExtraICState extra_state) { |
810 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); | 810 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); |
811 } | 811 } |
812 | 812 |
813 | 813 |
814 Handle<Code> LoadIC::megamorphic_stub() { | 814 Handle<Code> LoadIC::megamorphic_stub() { |
815 if (kind() == Code::LOAD_IC) { | 815 if (kind() == Code::LOAD_IC) { |
816 return PropertyICCompiler::ComputeLoad(isolate(), MEGAMORPHIC, | 816 MegamorphicLoadStub stub(isolate(), State(extra_ic_state())); |
817 extra_ic_state()); | 817 return stub.GetCode(); |
818 } else { | 818 } else { |
819 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); | 819 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); |
820 return KeyedLoadIC::generic_stub(isolate()); | 820 return KeyedLoadIC::generic_stub(isolate()); |
821 } | 821 } |
822 } | 822 } |
823 | 823 |
824 | 824 |
825 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, | 825 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, |
826 ExtraICState extra_state) { | 826 ExtraICState extra_state) { |
827 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); | 827 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); |
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3198 static const Address IC_utilities[] = { | 3198 static const Address IC_utilities[] = { |
3199 #define ADDR(name) FUNCTION_ADDR(name), | 3199 #define ADDR(name) FUNCTION_ADDR(name), |
3200 IC_UTIL_LIST(ADDR) NULL | 3200 IC_UTIL_LIST(ADDR) NULL |
3201 #undef ADDR | 3201 #undef ADDR |
3202 }; | 3202 }; |
3203 | 3203 |
3204 | 3204 |
3205 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 3205 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
3206 } | 3206 } |
3207 } // namespace v8::internal | 3207 } // namespace v8::internal |
OLD | NEW |