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

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

Issue 2147433002: [ic] [stubs] Don't use Code::flags in megamorphic stub cache hash computations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-stub-cache
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
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 compiler::Node* receiver_map, 431 compiler::Node* receiver_map,
432 Label* if_handler, Variable* var_handler, 432 Label* if_handler, Variable* var_handler,
433 Label* if_miss); 433 Label* if_miss);
434 void HandlePolymorphicCase(const LoadICParameters* p, 434 void HandlePolymorphicCase(const LoadICParameters* p,
435 compiler::Node* receiver_map, 435 compiler::Node* receiver_map,
436 compiler::Node* feedback, Label* if_handler, 436 compiler::Node* feedback, Label* if_handler,
437 Variable* var_handler, Label* if_miss, 437 Variable* var_handler, Label* if_miss,
438 int unroll_count); 438 int unroll_count);
439 439
440 compiler::Node* StubCachePrimaryOffset(compiler::Node* name, 440 compiler::Node* StubCachePrimaryOffset(compiler::Node* name,
441 Code::Flags flags,
442 compiler::Node* map); 441 compiler::Node* map);
443 442
444 compiler::Node* StubCacheSecondaryOffset(compiler::Node* name, 443 compiler::Node* StubCacheSecondaryOffset(compiler::Node* name,
445 Code::Flags flags,
446 compiler::Node* seed); 444 compiler::Node* seed);
447 445
448 // This enum is used here as a replacement for StubCache::Table to avoid 446 // This enum is used here as a replacement for StubCache::Table to avoid
449 // including stub cache header. 447 // including stub cache header.
450 enum StubCacheTable : int; 448 enum StubCacheTable : int;
451 449
452 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id, 450 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id,
453 compiler::Node* entry_offset, 451 compiler::Node* entry_offset,
454 compiler::Node* name, Code::Flags flags, 452 compiler::Node* name, compiler::Node* map,
455 compiler::Node* map, Label* if_handler, 453 Label* if_handler, Variable* var_handler,
456 Variable* var_handler, Label* if_miss); 454 Label* if_miss);
457 455
458 void TryProbeStubCache(StubCache* stub_cache, compiler::Node* receiver, 456 void TryProbeStubCache(StubCache* stub_cache, compiler::Node* receiver,
459 compiler::Node* name, Label* if_handler, 457 compiler::Node* name, Label* if_handler,
460 Variable* var_handler, Label* if_miss); 458 Variable* var_handler, Label* if_miss);
461 459
462 void LoadIC(const LoadICParameters* p); 460 void LoadIC(const LoadICParameters* p);
463 void LoadGlobalIC(const LoadICParameters* p); 461 void LoadGlobalIC(const LoadICParameters* p);
464 462
465 private: 463 private:
466 compiler::Node* ElementOffsetFromIndex(compiler::Node* index, 464 compiler::Node* ElementOffsetFromIndex(compiler::Node* index,
467 ElementsKind kind, ParameterMode mode, 465 ElementsKind kind, ParameterMode mode,
468 int base_size = 0); 466 int base_size = 0);
469 467
470 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, 468 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes,
471 AllocationFlags flags, 469 AllocationFlags flags,
472 compiler::Node* top_address, 470 compiler::Node* top_address,
473 compiler::Node* limit_address); 471 compiler::Node* limit_address);
474 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes, 472 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes,
475 AllocationFlags flags, 473 AllocationFlags flags,
476 compiler::Node* top_adddress, 474 compiler::Node* top_adddress,
477 compiler::Node* limit_address); 475 compiler::Node* limit_address);
478 476
479 static const int kElementLoopUnrollThreshold = 8; 477 static const int kElementLoopUnrollThreshold = 8;
480 }; 478 };
481 479
482 } // namespace internal 480 } // namespace internal
483 } // namespace v8 481 } // namespace v8
484 #endif // V8_CODE_STUB_ASSEMBLER_H_ 482 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698