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

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

Issue 2182103002: [KeyedLoadIC] Support Smi "handlers" for simple field loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: preparatory refactoring Created 4 years, 4 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 compiler::Node* TryMonomorphicCase(const LoadICParameters* p, 442 compiler::Node* TryMonomorphicCase(const LoadICParameters* p,
443 compiler::Node* receiver_map, 443 compiler::Node* receiver_map,
444 Label* if_handler, Variable* var_handler, 444 Label* if_handler, Variable* var_handler,
445 Label* if_miss); 445 Label* if_miss);
446 void HandlePolymorphicCase(const LoadICParameters* p, 446 void HandlePolymorphicCase(const LoadICParameters* p,
447 compiler::Node* receiver_map, 447 compiler::Node* receiver_map,
448 compiler::Node* feedback, Label* if_handler, 448 compiler::Node* feedback, Label* if_handler,
449 Variable* var_handler, Label* if_miss, 449 Variable* var_handler, Label* if_miss,
450 int unroll_count); 450 int unroll_count);
451 451
452 void HaveLoadICHandler(const LoadICParameters* p, compiler::Node* handler);
453
452 compiler::Node* StubCachePrimaryOffset(compiler::Node* name, 454 compiler::Node* StubCachePrimaryOffset(compiler::Node* name,
453 compiler::Node* map); 455 compiler::Node* map);
454 456
455 compiler::Node* StubCacheSecondaryOffset(compiler::Node* name, 457 compiler::Node* StubCacheSecondaryOffset(compiler::Node* name,
456 compiler::Node* seed); 458 compiler::Node* seed);
457 459
458 // This enum is used here as a replacement for StubCache::Table to avoid 460 // This enum is used here as a replacement for StubCache::Table to avoid
459 // including stub cache header. 461 // including stub cache header.
460 enum StubCacheTable : int; 462 enum StubCacheTable : int;
461 463
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 AllocationFlags flags, 496 AllocationFlags flags,
495 compiler::Node* top_adddress, 497 compiler::Node* top_adddress,
496 compiler::Node* limit_address); 498 compiler::Node* limit_address);
497 499
498 static const int kElementLoopUnrollThreshold = 8; 500 static const int kElementLoopUnrollThreshold = 8;
499 }; 501 };
500 502
501 } // namespace internal 503 } // namespace internal
502 } // namespace v8 504 } // namespace v8
503 #endif // V8_CODE_STUB_ASSEMBLER_H_ 505 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698