OLD | NEW |
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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 // This enum is used here as a replacement for StubCache::Table to avoid | 448 // This enum is used here as a replacement for StubCache::Table to avoid |
449 // including stub cache header. | 449 // including stub cache header. |
450 enum StubCacheTable : int; | 450 enum StubCacheTable : int; |
451 | 451 |
452 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id, | 452 void TryProbeStubCacheTable(StubCache* stub_cache, StubCacheTable table_id, |
453 compiler::Node* entry_offset, | 453 compiler::Node* entry_offset, |
454 compiler::Node* name, Code::Flags flags, | 454 compiler::Node* name, Code::Flags flags, |
455 compiler::Node* map, Label* if_handler, | 455 compiler::Node* map, Label* if_handler, |
456 Variable* var_handler, Label* if_miss); | 456 Variable* var_handler, Label* if_miss); |
457 | 457 |
458 void TryProbeStubCache(StubCache* stub_cache, Code::Flags flags, | 458 void TryProbeStubCache(StubCache* stub_cache, compiler::Node* receiver, |
459 compiler::Node* receiver, compiler::Node* name, | 459 compiler::Node* name, Label* if_handler, |
460 Label* if_handler, Variable* var_handler, | 460 Variable* var_handler, Label* if_miss); |
461 Label* if_miss); | |
462 | 461 |
463 void LoadIC(const LoadICParameters* p); | 462 void LoadIC(const LoadICParameters* p); |
464 void LoadGlobalIC(const LoadICParameters* p); | 463 void LoadGlobalIC(const LoadICParameters* p); |
465 | 464 |
466 private: | 465 private: |
467 compiler::Node* ElementOffsetFromIndex(compiler::Node* index, | 466 compiler::Node* ElementOffsetFromIndex(compiler::Node* index, |
468 ElementsKind kind, ParameterMode mode, | 467 ElementsKind kind, ParameterMode mode, |
469 int base_size = 0); | 468 int base_size = 0); |
470 | 469 |
471 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, | 470 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, |
472 AllocationFlags flags, | 471 AllocationFlags flags, |
473 compiler::Node* top_address, | 472 compiler::Node* top_address, |
474 compiler::Node* limit_address); | 473 compiler::Node* limit_address); |
475 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes, | 474 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes, |
476 AllocationFlags flags, | 475 AllocationFlags flags, |
477 compiler::Node* top_adddress, | 476 compiler::Node* top_adddress, |
478 compiler::Node* limit_address); | 477 compiler::Node* limit_address); |
479 | 478 |
480 static const int kElementLoopUnrollThreshold = 8; | 479 static const int kElementLoopUnrollThreshold = 8; |
481 }; | 480 }; |
482 | 481 |
483 } // namespace internal | 482 } // namespace internal |
484 } // namespace v8 | 483 } // namespace v8 |
485 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 484 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |