| 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 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2257 class StoreFastElementStub : public HydrogenCodeStub { | 2257 class StoreFastElementStub : public HydrogenCodeStub { |
| 2258 public: | 2258 public: |
| 2259 StoreFastElementStub(Isolate* isolate, bool is_js_array, | 2259 StoreFastElementStub(Isolate* isolate, bool is_js_array, |
| 2260 ElementsKind elements_kind, KeyedAccessStoreMode mode) | 2260 ElementsKind elements_kind, KeyedAccessStoreMode mode) |
| 2261 : HydrogenCodeStub(isolate) { | 2261 : HydrogenCodeStub(isolate) { |
| 2262 set_sub_minor_key(ElementsKindBits::encode(elements_kind) | | 2262 set_sub_minor_key(ElementsKindBits::encode(elements_kind) | |
| 2263 IsJSArrayBits::encode(is_js_array) | | 2263 IsJSArrayBits::encode(is_js_array) | |
| 2264 StoreModeBits::encode(mode)); | 2264 StoreModeBits::encode(mode)); |
| 2265 } | 2265 } |
| 2266 | 2266 |
| 2267 static void GenerateAheadOfTime(Isolate* isolate); |
| 2268 |
| 2267 bool is_js_array() const { return IsJSArrayBits::decode(sub_minor_key()); } | 2269 bool is_js_array() const { return IsJSArrayBits::decode(sub_minor_key()); } |
| 2268 | 2270 |
| 2269 ElementsKind elements_kind() const { | 2271 ElementsKind elements_kind() const { |
| 2270 return ElementsKindBits::decode(sub_minor_key()); | 2272 return ElementsKindBits::decode(sub_minor_key()); |
| 2271 } | 2273 } |
| 2272 | 2274 |
| 2273 KeyedAccessStoreMode store_mode() const { | 2275 KeyedAccessStoreMode store_mode() const { |
| 2274 return StoreModeBits::decode(sub_minor_key()); | 2276 return StoreModeBits::decode(sub_minor_key()); |
| 2275 } | 2277 } |
| 2276 | 2278 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2752 | 2754 |
| 2753 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2755 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
| 2754 #undef DEFINE_PLATFORM_CODE_STUB | 2756 #undef DEFINE_PLATFORM_CODE_STUB |
| 2755 #undef DEFINE_HANDLER_CODE_STUB | 2757 #undef DEFINE_HANDLER_CODE_STUB |
| 2756 #undef DEFINE_HYDROGEN_CODE_STUB | 2758 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2757 #undef DEFINE_CODE_STUB | 2759 #undef DEFINE_CODE_STUB |
| 2758 #undef DEFINE_CODE_STUB_BASE | 2760 #undef DEFINE_CODE_STUB_BASE |
| 2759 } } // namespace v8::internal | 2761 } } // namespace v8::internal |
| 2760 | 2762 |
| 2761 #endif // V8_CODE_STUBS_H_ | 2763 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |