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

Side by Side Diff: src/code-stubs.h

Issue 1998593002: [Interpreter] Inline ToBooleanStub and do some cleanup on unary ops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 927
928 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); 928 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
929 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); 929 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub);
930 }; 930 };
931 931
932 class ToBooleanStub final : public TurboFanCodeStub { 932 class ToBooleanStub final : public TurboFanCodeStub {
933 public: 933 public:
934 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 934 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
935 935
936 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 936 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
937 DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); 937 DEFINE_TURBOFAN_UNARY_OP_CODE_STUB(ToBoolean, TurboFanCodeStub);
938 }; 938 };
939 939
940 class ToIntegerStub final : public TurboFanCodeStub { 940 class ToIntegerStub final : public TurboFanCodeStub {
941 public: 941 public:
942 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 942 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
943 943
944 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 944 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
945 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); 945 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub);
946 }; 946 };
947 947
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after
3260 #undef DEFINE_HYDROGEN_CODE_STUB 3260 #undef DEFINE_HYDROGEN_CODE_STUB
3261 #undef DEFINE_CODE_STUB 3261 #undef DEFINE_CODE_STUB
3262 #undef DEFINE_CODE_STUB_BASE 3262 #undef DEFINE_CODE_STUB_BASE
3263 3263
3264 extern Representation RepresentationFromType(Type* type); 3264 extern Representation RepresentationFromType(Type* type);
3265 3265
3266 } // namespace internal 3266 } // namespace internal
3267 } // namespace v8 3267 } // namespace v8
3268 3268
3269 #endif // V8_CODE_STUBS_H_ 3269 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698