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

Side by Side Diff: src/code-stub-assembler.h

Issue 2123983004: [ic] Split megamorphic stub cache in two caches (for loads and for stores). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@flags-fix
Patch Set: Created 4 years, 5 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // This enum is used here as a replacement for StubCache::Table to avoid 442 // This enum is used here as a replacement for StubCache::Table to avoid
443 // including stub cache header. 443 // including stub cache header.
444 enum StubCacheTable : int; 444 enum StubCacheTable : int;
445 445
446 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id, 446 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id,
447 compiler::Node* entry_offset, 447 compiler::Node* entry_offset,
448 compiler::Node* name, Code::Flags flags, 448 compiler::Node* name, Code::Flags flags,
449 compiler::Node* map, Label* if_handler, 449 compiler::Node* map, Label* if_handler,
450 Variable* var_handler, Label* if_miss); 450 Variable* var_handler, Label* if_miss);
451 451
452 void TryProbeStubCache(StubCache* stub_cache, Code::Flags flags, 452 void TryProbeStubCache(StubCache* stub_cache, compiler::Node* receiver,
453 compiler::Node* receiver, compiler::Node* name, 453 compiler::Node* name, Label* if_handler,
454 Label* if_handler, Variable* var_handler, 454 Variable* var_handler, Label* if_miss);
455 Label* if_miss);
456 455
457 void LoadIC(const LoadICParameters* p); 456 void LoadIC(const LoadICParameters* p);
458 void LoadGlobalIC(const LoadICParameters* p); 457 void LoadGlobalIC(const LoadICParameters* p);
459 458
460 private: 459 private:
461 compiler::Node* ElementOffsetFromIndex(compiler::Node* index, 460 compiler::Node* ElementOffsetFromIndex(compiler::Node* index,
462 ElementsKind kind, ParameterMode mode, 461 ElementsKind kind, ParameterMode mode,
463 int base_size = 0); 462 int base_size = 0);
464 463
465 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, 464 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes,
466 AllocationFlags flags, 465 AllocationFlags flags,
467 compiler::Node* top_address, 466 compiler::Node* top_address,
468 compiler::Node* limit_address); 467 compiler::Node* limit_address);
469 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes, 468 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes,
470 AllocationFlags flags, 469 AllocationFlags flags,
471 compiler::Node* top_adddress, 470 compiler::Node* top_adddress,
472 compiler::Node* limit_address); 471 compiler::Node* limit_address);
473 472
474 static const int kElementLoopUnrollThreshold = 8; 473 static const int kElementLoopUnrollThreshold = 8;
475 }; 474 };
476 475
477 } // namespace internal 476 } // namespace internal
478 } // namespace v8 477 } // namespace v8
479 #endif // V8_CODE_STUB_ASSEMBLER_H_ 478 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stub-assembler.cc » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698