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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 if (FLAG_vector_ics) { | 998 if (FLAG_vector_ics) { |
999 return KeyedLoadICTrampolineStub(isolate).GetCode(); | 999 return KeyedLoadICTrampolineStub(isolate).GetCode(); |
1000 } | 1000 } |
1001 | 1001 |
1002 return isolate->builtins()->KeyedLoadIC_Initialize(); | 1002 return isolate->builtins()->KeyedLoadIC_Initialize(); |
1003 } | 1003 } |
1004 | 1004 |
1005 | 1005 |
1006 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code( | 1006 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code( |
1007 Isolate* isolate, State initialization_state) { | 1007 Isolate* isolate, State initialization_state) { |
1008 if (FLAG_vector_ics && initialization_state != MEGAMORPHIC) { | 1008 if (FLAG_vector_ics) { |
1009 return VectorRawKeyedLoadStub(isolate).GetCode(); | 1009 return VectorRawKeyedLoadStub(isolate).GetCode(); |
1010 } | 1010 } |
1011 switch (initialization_state) { | 1011 switch (initialization_state) { |
1012 case UNINITIALIZED: | 1012 case UNINITIALIZED: |
1013 return isolate->builtins()->KeyedLoadIC_Initialize(); | 1013 return isolate->builtins()->KeyedLoadIC_Initialize(); |
1014 case PREMONOMORPHIC: | 1014 case PREMONOMORPHIC: |
1015 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); | 1015 return isolate->builtins()->KeyedLoadIC_PreMonomorphic(); |
1016 case MEGAMORPHIC: | 1016 case MEGAMORPHIC: |
1017 return isolate->builtins()->KeyedLoadIC_Megamorphic(); | 1017 return isolate->builtins()->KeyedLoadIC_Megamorphic(); |
1018 default: | 1018 default: |
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3045 static const Address IC_utilities[] = { | 3045 static const Address IC_utilities[] = { |
3046 #define ADDR(name) FUNCTION_ADDR(name), | 3046 #define ADDR(name) FUNCTION_ADDR(name), |
3047 IC_UTIL_LIST(ADDR) NULL | 3047 IC_UTIL_LIST(ADDR) NULL |
3048 #undef ADDR | 3048 #undef ADDR |
3049 }; | 3049 }; |
3050 | 3050 |
3051 | 3051 |
3052 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 3052 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
3053 } | 3053 } |
3054 } // namespace v8::internal | 3054 } // namespace v8::internal |
OLD | NEW |