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

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

Issue 1040183004: Generate common StoreFastElementStubs ahead of time (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('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 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698