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 2726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2737 break; | 2737 break; |
2738 case Token::SAR: | 2738 case Token::SAR: |
2739 return Builtins::SAR; | 2739 return Builtins::SAR; |
2740 break; | 2740 break; |
2741 case Token::SHR: | 2741 case Token::SHR: |
2742 return Builtins::SHR; | 2742 return Builtins::SHR; |
2743 break; | 2743 break; |
2744 case Token::SHL: | 2744 case Token::SHL: |
2745 return Builtins::SHL; | 2745 return Builtins::SHL; |
2746 break; | 2746 break; |
| 2747 case Token::EXP: |
| 2748 return Builtins::EXP; |
| 2749 break; |
2747 } | 2750 } |
2748 } | 2751 } |
2749 | 2752 |
2750 | 2753 |
2751 Handle<Object> ToBooleanIC::ToBoolean(Handle<Object> object) { | 2754 Handle<Object> ToBooleanIC::ToBoolean(Handle<Object> object) { |
2752 ToBooleanStub stub(isolate(), target()->extra_ic_state()); | 2755 ToBooleanStub stub(isolate(), target()->extra_ic_state()); |
2753 bool to_boolean_value = stub.UpdateStatus(object); | 2756 bool to_boolean_value = stub.UpdateStatus(object); |
2754 Handle<Code> code = stub.GetCode(); | 2757 Handle<Code> code = stub.GetCode(); |
2755 set_target(*code); | 2758 set_target(*code); |
2756 return handle(Smi::FromInt(to_boolean_value ? 1 : 0), isolate()); | 2759 return handle(Smi::FromInt(to_boolean_value ? 1 : 0), isolate()); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2967 static const Address IC_utilities[] = { | 2970 static const Address IC_utilities[] = { |
2968 #define ADDR(name) FUNCTION_ADDR(name), | 2971 #define ADDR(name) FUNCTION_ADDR(name), |
2969 IC_UTIL_LIST(ADDR) NULL | 2972 IC_UTIL_LIST(ADDR) NULL |
2970 #undef ADDR | 2973 #undef ADDR |
2971 }; | 2974 }; |
2972 | 2975 |
2973 | 2976 |
2974 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 2977 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
2975 } | 2978 } |
2976 } // namespace v8::internal | 2979 } // namespace v8::internal |
OLD | NEW |