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

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

Issue 1412963002: [runtime] Implement %_ToLength via ToLengthStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 #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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 V(ProfileEntryHook) \ 45 V(ProfileEntryHook) \
46 V(RecordWrite) \ 46 V(RecordWrite) \
47 V(RegExpExec) \ 47 V(RegExpExec) \
48 V(StoreArrayLiteralElement) \ 48 V(StoreArrayLiteralElement) \
49 V(StoreBufferOverflow) \ 49 V(StoreBufferOverflow) \
50 V(StoreElement) \ 50 V(StoreElement) \
51 V(StringCompare) \ 51 V(StringCompare) \
52 V(StubFailureTrampoline) \ 52 V(StubFailureTrampoline) \
53 V(SubString) \ 53 V(SubString) \
54 V(ToNumber) \ 54 V(ToNumber) \
55 V(ToLength) \
55 V(ToString) \ 56 V(ToString) \
56 V(ToObject) \ 57 V(ToObject) \
57 V(VectorStoreICTrampoline) \ 58 V(VectorStoreICTrampoline) \
58 V(VectorKeyedStoreICTrampoline) \ 59 V(VectorKeyedStoreICTrampoline) \
59 V(VectorStoreIC) \ 60 V(VectorStoreIC) \
60 V(VectorKeyedStoreIC) \ 61 V(VectorKeyedStoreIC) \
61 /* HydrogenCodeStubs */ \ 62 /* HydrogenCodeStubs */ \
62 V(AllocateHeapNumber) \ 63 V(AllocateHeapNumber) \
63 V(AllocateInNewSpace) \ 64 V(AllocateInNewSpace) \
64 V(ArrayNArgumentsConstructor) \ 65 V(ArrayNArgumentsConstructor) \
(...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 3070
3070 class ToNumberStub final : public PlatformCodeStub { 3071 class ToNumberStub final : public PlatformCodeStub {
3071 public: 3072 public:
3072 explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3073 explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3073 3074
3074 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToNumber); 3075 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToNumber);
3075 DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub); 3076 DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub);
3076 }; 3077 };
3077 3078
3078 3079
3080 class ToLengthStub final : public PlatformCodeStub {
3081 public:
3082 explicit ToLengthStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3083
3084 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToLength);
3085 DEFINE_PLATFORM_CODE_STUB(ToLength, PlatformCodeStub);
3086 };
3087
3088
3079 class ToStringStub final : public PlatformCodeStub { 3089 class ToStringStub final : public PlatformCodeStub {
3080 public: 3090 public:
3081 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 3091 explicit ToStringStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3082 3092
3083 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToString); 3093 DEFINE_CALL_INTERFACE_DESCRIPTOR(ToString);
3084 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub); 3094 DEFINE_PLATFORM_CODE_STUB(ToString, PlatformCodeStub);
3085 }; 3095 };
3086 3096
3087 3097
3088 class ToObjectStub final : public HydrogenCodeStub { 3098 class ToObjectStub final : public HydrogenCodeStub {
(...skipping 20 matching lines...) Expand all
3109 #undef DEFINE_HYDROGEN_CODE_STUB 3119 #undef DEFINE_HYDROGEN_CODE_STUB
3110 #undef DEFINE_CODE_STUB 3120 #undef DEFINE_CODE_STUB
3111 #undef DEFINE_CODE_STUB_BASE 3121 #undef DEFINE_CODE_STUB_BASE
3112 3122
3113 extern Representation RepresentationFromType(Type* type); 3123 extern Representation RepresentationFromType(Type* type);
3114 3124
3115 } // namespace internal 3125 } // namespace internal
3116 } // namespace v8 3126 } // namespace v8
3117 3127
3118 #endif // V8_CODE_STUBS_H_ 3128 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698