| OLD | NEW | 
|     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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    60   /* HydrogenCodeStubs */                   \ |    60   /* HydrogenCodeStubs */                   \ | 
|    61   V(AllocateInNewSpace)                     \ |    61   V(AllocateInNewSpace)                     \ | 
|    62   V(ArrayNArgumentsConstructor)             \ |    62   V(ArrayNArgumentsConstructor)             \ | 
|    63   V(ArrayNoArgumentConstructor)             \ |    63   V(ArrayNoArgumentConstructor)             \ | 
|    64   V(ArraySingleArgumentConstructor)         \ |    64   V(ArraySingleArgumentConstructor)         \ | 
|    65   V(BinaryOpIC)                             \ |    65   V(BinaryOpIC)                             \ | 
|    66   V(BinaryOpWithAllocationSite)             \ |    66   V(BinaryOpWithAllocationSite)             \ | 
|    67   V(CreateAllocationSite)                   \ |    67   V(CreateAllocationSite)                   \ | 
|    68   V(CreateWeakCell)                         \ |    68   V(CreateWeakCell)                         \ | 
|    69   V(ElementsTransitionAndStore)             \ |    69   V(ElementsTransitionAndStore)             \ | 
 |    70   V(FastArrayPush)                          \ | 
|    70   V(FastCloneRegExp)                        \ |    71   V(FastCloneRegExp)                        \ | 
|    71   V(FastCloneShallowArray)                  \ |    72   V(FastCloneShallowArray)                  \ | 
|    72   V(FastCloneShallowObject)                 \ |    73   V(FastCloneShallowObject)                 \ | 
|    73   V(FastNewClosure)                         \ |    74   V(FastNewClosure)                         \ | 
|    74   V(FastNewContext)                         \ |    75   V(FastNewContext)                         \ | 
|    75   V(FastNewObject)                          \ |    76   V(FastNewObject)                          \ | 
|    76   V(FastNewRestParameter)                   \ |    77   V(FastNewRestParameter)                   \ | 
|    77   V(FastNewSloppyArguments)                 \ |    78   V(FastNewSloppyArguments)                 \ | 
|    78   V(FastNewStrictArguments)                 \ |    79   V(FastNewStrictArguments)                 \ | 
|    79   V(GrowArrayElements)                      \ |    80   V(GrowArrayElements)                      \ | 
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1037   bool is_js_array() const { return IsJsArrayBits::decode(sub_minor_key()); } |  1038   bool is_js_array() const { return IsJsArrayBits::decode(sub_minor_key()); } | 
|  1038  |  1039  | 
|  1039  private: |  1040  private: | 
|  1040   class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; |  1041   class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; | 
|  1041   class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; |  1042   class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; | 
|  1042  |  1043  | 
|  1043   DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); |  1044   DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); | 
|  1044   DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); |  1045   DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); | 
|  1045 }; |  1046 }; | 
|  1046  |  1047  | 
 |  1048 class FastArrayPushStub : public HydrogenCodeStub { | 
 |  1049  public: | 
 |  1050   explicit FastArrayPushStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 
 |  1051  | 
 |  1052  private: | 
 |  1053   DEFINE_CALL_INTERFACE_DESCRIPTOR(FastArrayPush); | 
 |  1054   DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub); | 
 |  1055 }; | 
|  1047  |  1056  | 
|  1048 class InstanceOfStub final : public PlatformCodeStub { |  1057 class InstanceOfStub final : public PlatformCodeStub { | 
|  1049  public: |  1058  public: | 
|  1050   explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |  1059   explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 
|  1051  |  1060  | 
|  1052  private: |  1061  private: | 
|  1053   DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); |  1062   DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); | 
|  1054   DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); |  1063   DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); | 
|  1055 }; |  1064 }; | 
|  1056  |  1065  | 
| (...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3005 #undef DEFINE_HYDROGEN_CODE_STUB |  3014 #undef DEFINE_HYDROGEN_CODE_STUB | 
|  3006 #undef DEFINE_CODE_STUB |  3015 #undef DEFINE_CODE_STUB | 
|  3007 #undef DEFINE_CODE_STUB_BASE |  3016 #undef DEFINE_CODE_STUB_BASE | 
|  3008  |  3017  | 
|  3009 extern Representation RepresentationFromType(Type* type); |  3018 extern Representation RepresentationFromType(Type* type); | 
|  3010  |  3019  | 
|  3011 }  // namespace internal |  3020 }  // namespace internal | 
|  3012 }  // namespace v8 |  3021 }  // namespace v8 | 
|  3013  |  3022  | 
|  3014 #endif  // V8_CODE_STUBS_H_ |  3023 #endif  // V8_CODE_STUBS_H_ | 
| OLD | NEW |