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 #include "src/code-stub-assembler.h" | 5 #include "src/code-stub-assembler.h" |
6 #include "src/code-factory.h" | 6 #include "src/code-factory.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 424 } |
425 #endif | 425 #endif |
426 | 426 |
427 return AllocateRawUnaligned(size_in_bytes, flags, top_address, limit_address); | 427 return AllocateRawUnaligned(size_in_bytes, flags, top_address, limit_address); |
428 } | 428 } |
429 | 429 |
430 Node* CodeStubAssembler::Allocate(int size_in_bytes, AllocationFlags flags) { | 430 Node* CodeStubAssembler::Allocate(int size_in_bytes, AllocationFlags flags) { |
431 return CodeStubAssembler::Allocate(IntPtrConstant(size_in_bytes), flags); | 431 return CodeStubAssembler::Allocate(IntPtrConstant(size_in_bytes), flags); |
432 } | 432 } |
433 | 433 |
| 434 Node* CodeStubAssembler::InnerAllocate(Node* previous, Node* offset) { |
| 435 return BitcastWordToTagged(IntPtrAdd(previous, offset)); |
| 436 } |
| 437 |
434 Node* CodeStubAssembler::InnerAllocate(Node* previous, int offset) { | 438 Node* CodeStubAssembler::InnerAllocate(Node* previous, int offset) { |
435 return BitcastWordToTagged(IntPtrAdd(previous, IntPtrConstant(offset))); | 439 return InnerAllocate(previous, IntPtrConstant(offset)); |
436 } | 440 } |
437 | 441 |
438 Node* CodeStubAssembler::LoadBufferObject(Node* buffer, int offset, | 442 Node* CodeStubAssembler::LoadBufferObject(Node* buffer, int offset, |
439 MachineType rep) { | 443 MachineType rep) { |
440 return Load(rep, buffer, IntPtrConstant(offset)); | 444 return Load(rep, buffer, IntPtrConstant(offset)); |
441 } | 445 } |
442 | 446 |
443 Node* CodeStubAssembler::LoadObjectField(Node* object, int offset, | 447 Node* CodeStubAssembler::LoadObjectField(Node* object, int offset, |
444 MachineType rep) { | 448 MachineType rep) { |
445 return Load(rep, object, IntPtrConstant(offset - kHeapObjectTag)); | 449 return Load(rep, object, IntPtrConstant(offset - kHeapObjectTag)); |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 } | 1139 } |
1136 | 1140 |
1137 Node* CodeStubAssembler::BitFieldDecode(Node* word32, uint32_t shift, | 1141 Node* CodeStubAssembler::BitFieldDecode(Node* word32, uint32_t shift, |
1138 uint32_t mask) { | 1142 uint32_t mask) { |
1139 return Word32Shr(Word32And(word32, Int32Constant(mask)), | 1143 return Word32Shr(Word32And(word32, Int32Constant(mask)), |
1140 Int32Constant(shift)); | 1144 Int32Constant(shift)); |
1141 } | 1145 } |
1142 | 1146 |
1143 } // namespace internal | 1147 } // namespace internal |
1144 } // namespace v8 | 1148 } // namespace v8 |
OLD | NEW |