Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/ic/ic.cc

Issue 953563002: Implement experimental exponentiation operator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more tests and fix some bugs Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« src/compiler/typer.cc ('K') | « src/hydrogen.cc ('k') | src/ic/ic-state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698