| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void BranchIfSmiLessThanOrEqual(compiler::Node* a, compiler::Node* b, | 107 void BranchIfSmiLessThanOrEqual(compiler::Node* a, compiler::Node* b, |
| 108 Label* if_true, Label* if_false) { | 108 Label* if_true, Label* if_false) { |
| 109 BranchIf(SmiLessThanOrEqual(a, b), if_true, if_false); | 109 BranchIf(SmiLessThanOrEqual(a, b), if_true, if_false); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void BranchIfFloat64IsNaN(compiler::Node* value, Label* if_true, | 112 void BranchIfFloat64IsNaN(compiler::Node* value, Label* if_true, |
| 113 Label* if_false) { | 113 Label* if_false) { |
| 114 BranchIfFloat64Equal(value, value, if_false, if_true); | 114 BranchIfFloat64Equal(value, value, if_false, if_true); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void BranchIfSimd128Equal(compiler::Node* a, compiler::Node* a_map, |
| 118 compiler::Node* b, compiler::Node* b_map, |
| 119 Label* if_true, Label* if_false); |
| 120 void BranchIfSimd128Equal(compiler::Node* a, compiler::Node* b, |
| 121 Label* if_true, Label* if_false) { |
| 122 BranchIfSimd128Equal(a, LoadMap(a), b, LoadMap(b), if_true, if_false); |
| 123 } |
| 124 |
| 125 void BranchIfSameValueZero(compiler::Node* a, compiler::Node* b, |
| 126 compiler::Node* context, Label* if_true, |
| 127 Label* if_false); |
| 128 |
| 129 void BranchIfFastJSArray(compiler::Node* object, compiler::Node* context, |
| 130 Label* if_true, Label* if_false); |
| 131 |
| 117 // Load value from current frame by given offset in bytes. | 132 // Load value from current frame by given offset in bytes. |
| 118 compiler::Node* LoadFromFrame(int offset, | 133 compiler::Node* LoadFromFrame(int offset, |
| 119 MachineType rep = MachineType::AnyTagged()); | 134 MachineType rep = MachineType::AnyTagged()); |
| 120 // Load value from current parent frame by given offset in bytes. | 135 // Load value from current parent frame by given offset in bytes. |
| 121 compiler::Node* LoadFromParentFrame( | 136 compiler::Node* LoadFromParentFrame( |
| 122 int offset, MachineType rep = MachineType::AnyTagged()); | 137 int offset, MachineType rep = MachineType::AnyTagged()); |
| 123 | 138 |
| 124 // Load an object pointer from a buffer that isn't in the heap. | 139 // Load an object pointer from a buffer that isn't in the heap. |
| 125 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset, | 140 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset, |
| 126 MachineType rep = MachineType::AnyTagged()); | 141 MachineType rep = MachineType::AnyTagged()); |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 AllocationFlags flags, | 492 AllocationFlags flags, |
| 478 compiler::Node* top_adddress, | 493 compiler::Node* top_adddress, |
| 479 compiler::Node* limit_address); | 494 compiler::Node* limit_address); |
| 480 | 495 |
| 481 static const int kElementLoopUnrollThreshold = 8; | 496 static const int kElementLoopUnrollThreshold = 8; |
| 482 }; | 497 }; |
| 483 | 498 |
| 484 } // namespace internal | 499 } // namespace internal |
| 485 } // namespace v8 | 500 } // namespace v8 |
| 486 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 501 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |