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

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

Issue 1347913003: [stubs] Refactor StringCompareStub and use it for HStringCompareAndBranch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/code-factory.cc ('k') | src/hydrogen-instructions.h » ('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/codegen.h" 10 #include "src/codegen.h"
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 3057
3058 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); 3058 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject);
3059 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); 3059 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub);
3060 }; 3060 };
3061 3061
3062 3062
3063 class StringCompareStub : public PlatformCodeStub { 3063 class StringCompareStub : public PlatformCodeStub {
3064 public: 3064 public:
3065 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3065 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3066 3066
3067 DEFINE_CALL_INTERFACE_DESCRIPTOR(ContextOnly); 3067 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare);
3068 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); 3068 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub);
3069 }; 3069 };
3070 3070
3071 3071
3072 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 3072 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
3073 #undef DEFINE_PLATFORM_CODE_STUB 3073 #undef DEFINE_PLATFORM_CODE_STUB
3074 #undef DEFINE_HANDLER_CODE_STUB 3074 #undef DEFINE_HANDLER_CODE_STUB
3075 #undef DEFINE_HYDROGEN_CODE_STUB 3075 #undef DEFINE_HYDROGEN_CODE_STUB
3076 #undef DEFINE_CODE_STUB 3076 #undef DEFINE_CODE_STUB
3077 #undef DEFINE_CODE_STUB_BASE 3077 #undef DEFINE_CODE_STUB_BASE
3078 3078
3079 extern Representation RepresentationFromType(Type* type); 3079 extern Representation RepresentationFromType(Type* type);
3080 } } // namespace v8::internal 3080
3081 } // namespace internal
3082 } // namespace v8
3081 3083
3082 #endif // V8_CODE_STUBS_H_ 3084 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698