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

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

Issue 2195863002: [turbofan] Stub for typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Delete now unused untemplated DoUnaryOp Created 4 years, 4 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 | « src/arm64/code-stubs-arm64.cc ('k') | 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1050
1051 1051
1052 class NumberToStringStub final : public HydrogenCodeStub { 1052 class NumberToStringStub final : public HydrogenCodeStub {
1053 public: 1053 public:
1054 explicit NumberToStringStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} 1054 explicit NumberToStringStub(Isolate* isolate) : HydrogenCodeStub(isolate) {}
1055 1055
1056 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 1056 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
1057 DEFINE_HYDROGEN_CODE_STUB(NumberToString, HydrogenCodeStub); 1057 DEFINE_HYDROGEN_CODE_STUB(NumberToString, HydrogenCodeStub);
1058 }; 1058 };
1059 1059
1060 1060 class TypeofStub final : public TurboFanCodeStub {
1061 class TypeofStub final : public HydrogenCodeStub {
1062 public: 1061 public:
1063 explicit TypeofStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} 1062 explicit TypeofStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
1064
1065 static void GenerateAheadOfTime(Isolate* isolate);
1066 1063
1067 DEFINE_CALL_INTERFACE_DESCRIPTOR(Typeof); 1064 DEFINE_CALL_INTERFACE_DESCRIPTOR(Typeof);
1068 DEFINE_HYDROGEN_CODE_STUB(Typeof, HydrogenCodeStub); 1065 DEFINE_TURBOFAN_UNARY_OP_CODE_STUB(Typeof, TurboFanCodeStub);
1069 }; 1066 };
1070 1067
1071 class FastNewClosureStub : public TurboFanCodeStub { 1068 class FastNewClosureStub : public TurboFanCodeStub {
1072 public: 1069 public:
1073 explicit FastNewClosureStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} 1070 explicit FastNewClosureStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
1074 1071
1075 static compiler::Node* Generate(CodeStubAssembler* assembler, 1072 static compiler::Node* Generate(CodeStubAssembler* assembler,
1076 compiler::Node* shared_info, 1073 compiler::Node* shared_info,
1077 compiler::Node* context); 1074 compiler::Node* context);
1078 1075
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 #undef DEFINE_HYDROGEN_CODE_STUB 3145 #undef DEFINE_HYDROGEN_CODE_STUB
3149 #undef DEFINE_CODE_STUB 3146 #undef DEFINE_CODE_STUB
3150 #undef DEFINE_CODE_STUB_BASE 3147 #undef DEFINE_CODE_STUB_BASE
3151 3148
3152 extern Representation RepresentationFromType(Type* type); 3149 extern Representation RepresentationFromType(Type* type);
3153 3150
3154 } // namespace internal 3151 } // namespace internal
3155 } // namespace v8 3152 } // namespace v8
3156 3153
3157 #endif // V8_CODE_STUBS_H_ 3154 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698