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 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2103 bool is_js_array() const { | 2103 bool is_js_array() const { |
2104 return IsJSArrayBits::decode(bit_field_); | 2104 return IsJSArrayBits::decode(bit_field_); |
2105 } | 2105 } |
2106 | 2106 |
2107 ElementsKind elements_kind() const { | 2107 ElementsKind elements_kind() const { |
2108 return ElementsKindBits::decode(bit_field_); | 2108 return ElementsKindBits::decode(bit_field_); |
2109 } | 2109 } |
2110 | 2110 |
2111 virtual Handle<Code> GenerateCode() V8_OVERRIDE; | 2111 virtual Handle<Code> GenerateCode() V8_OVERRIDE; |
2112 | 2112 |
| 2113 static void InstallDescriptors(Isolate* isolate); |
| 2114 |
2113 virtual void InitializeInterfaceDescriptor( | 2115 virtual void InitializeInterfaceDescriptor( |
2114 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; | 2116 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; |
2115 | 2117 |
2116 private: | 2118 private: |
2117 class ElementsKindBits: public BitField<ElementsKind, 0, 8> {}; | 2119 class ElementsKindBits: public BitField<ElementsKind, 0, 8> {}; |
2118 class IsJSArrayBits: public BitField<bool, 8, 1> {}; | 2120 class IsJSArrayBits: public BitField<bool, 8, 1> {}; |
2119 uint32_t bit_field_; | 2121 uint32_t bit_field_; |
2120 | 2122 |
2121 Major MajorKey() const { return LoadElement; } | 2123 Major MajorKey() const { return LoadElement; } |
2122 int NotMissMinorKey() const { return bit_field_; } | 2124 int NotMissMinorKey() const { return bit_field_; } |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2657 | 2659 |
2658 | 2660 |
2659 class CallDescriptors { | 2661 class CallDescriptors { |
2660 public: | 2662 public: |
2661 static void InitializeForIsolate(Isolate* isolate); | 2663 static void InitializeForIsolate(Isolate* isolate); |
2662 }; | 2664 }; |
2663 | 2665 |
2664 } } // namespace v8::internal | 2666 } } // namespace v8::internal |
2665 | 2667 |
2666 #endif // V8_CODE_STUBS_H_ | 2668 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |