| 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 #include "src/code-stub-assembler.h" | 4 #include "src/code-stub-assembler.h" |
| 5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/frames-inl.h" | 6 #include "src/frames-inl.h" |
| 7 #include "src/frames.h" | 7 #include "src/frames.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 4573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4584 return SelectConstant(IntPtrGreaterThanOrEqual(left, right), left, right, | 4584 return SelectConstant(IntPtrGreaterThanOrEqual(left, right), left, right, |
| 4585 MachineType::PointerRepresentation()); | 4585 MachineType::PointerRepresentation()); |
| 4586 } | 4586 } |
| 4587 | 4587 |
| 4588 Node* CodeStubAssembler::IntPtrMin(Node* left, Node* right) { | 4588 Node* CodeStubAssembler::IntPtrMin(Node* left, Node* right) { |
| 4589 return SelectConstant(IntPtrLessThanOrEqual(left, right), left, right, | 4589 return SelectConstant(IntPtrLessThanOrEqual(left, right), left, right, |
| 4590 MachineType::PointerRepresentation()); | 4590 MachineType::PointerRepresentation()); |
| 4591 } | 4591 } |
| 4592 | 4592 |
| 4593 template <class Dictionary> | 4593 template <class Dictionary> |
| 4594 Node* CodeStubAssembler::GetNumberOfElements(Node* dictionary) { | |
| 4595 return LoadFixedArrayElement(dictionary, Dictionary::kNumberOfElementsIndex); | |
| 4596 } | |
| 4597 | |
| 4598 template <class Dictionary> | |
| 4599 void CodeStubAssembler::SetNumberOfElements(Node* dictionary, | |
| 4600 Node* num_elements_smi) { | |
| 4601 StoreFixedArrayElement(dictionary, Dictionary::kNumberOfElementsIndex, | |
| 4602 num_elements_smi, SKIP_WRITE_BARRIER); | |
| 4603 } | |
| 4604 | |
| 4605 template <class Dictionary> | |
| 4606 Node* CodeStubAssembler::GetNumberOfDeletedElements(Node* dictionary) { | |
| 4607 return LoadFixedArrayElement(dictionary, | |
| 4608 Dictionary::kNumberOfDeletedElementsIndex); | |
| 4609 } | |
| 4610 | |
| 4611 template <class Dictionary> | |
| 4612 Node* CodeStubAssembler::GetCapacity(Node* dictionary) { | |
| 4613 return LoadFixedArrayElement(dictionary, Dictionary::kCapacityIndex); | |
| 4614 } | |
| 4615 | |
| 4616 template <class Dictionary> | |
| 4617 Node* CodeStubAssembler::GetNextEnumerationIndex(Node* dictionary) { | 4594 Node* CodeStubAssembler::GetNextEnumerationIndex(Node* dictionary) { |
| 4618 return LoadFixedArrayElement(dictionary, | 4595 return LoadFixedArrayElement(dictionary, |
| 4619 Dictionary::kNextEnumerationIndexIndex); | 4596 Dictionary::kNextEnumerationIndexIndex); |
| 4620 } | 4597 } |
| 4621 | 4598 |
| 4622 template <class Dictionary> | 4599 template <class Dictionary> |
| 4623 void CodeStubAssembler::SetNextEnumerationIndex(Node* dictionary, | 4600 void CodeStubAssembler::SetNextEnumerationIndex(Node* dictionary, |
| 4624 Node* next_enum_index_smi) { | 4601 Node* next_enum_index_smi) { |
| 4625 StoreFixedArrayElement(dictionary, Dictionary::kNextEnumerationIndexIndex, | 4602 StoreFixedArrayElement(dictionary, Dictionary::kNextEnumerationIndexIndex, |
| 4626 next_enum_index_smi, SKIP_WRITE_BARRIER); | 4603 next_enum_index_smi, SKIP_WRITE_BARRIER); |
| (...skipping 3978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8605 formatted.c_str(), TENURED); | 8582 formatted.c_str(), TENURED); |
| 8606 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), | 8583 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), |
| 8607 HeapConstant(string)); | 8584 HeapConstant(string)); |
| 8608 } | 8585 } |
| 8609 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); | 8586 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); |
| 8610 #endif | 8587 #endif |
| 8611 } | 8588 } |
| 8612 | 8589 |
| 8613 } // namespace internal | 8590 } // namespace internal |
| 8614 } // namespace v8 | 8591 } // namespace v8 |
| OLD | NEW |