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 BranchIfSameValueZero(compiler::Node* a, compiler::Node* b, |
| 118 compiler::Node* context, Label* if_true, |
| 119 Label* if_false); |
| 120 |
117 // Load value from current frame by given offset in bytes. | 121 // Load value from current frame by given offset in bytes. |
118 compiler::Node* LoadFromFrame(int offset, | 122 compiler::Node* LoadFromFrame(int offset, |
119 MachineType rep = MachineType::AnyTagged()); | 123 MachineType rep = MachineType::AnyTagged()); |
120 // Load value from current parent frame by given offset in bytes. | 124 // Load value from current parent frame by given offset in bytes. |
121 compiler::Node* LoadFromParentFrame( | 125 compiler::Node* LoadFromParentFrame( |
122 int offset, MachineType rep = MachineType::AnyTagged()); | 126 int offset, MachineType rep = MachineType::AnyTagged()); |
123 | 127 |
124 // Load an object pointer from a buffer that isn't in the heap. | 128 // Load an object pointer from a buffer that isn't in the heap. |
125 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset, | 129 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset, |
126 MachineType rep = MachineType::AnyTagged()); | 130 MachineType rep = MachineType::AnyTagged()); |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 AllocationFlags flags, | 479 AllocationFlags flags, |
476 compiler::Node* top_adddress, | 480 compiler::Node* top_adddress, |
477 compiler::Node* limit_address); | 481 compiler::Node* limit_address); |
478 | 482 |
479 static const int kElementLoopUnrollThreshold = 8; | 483 static const int kElementLoopUnrollThreshold = 8; |
480 }; | 484 }; |
481 | 485 |
482 } // namespace internal | 486 } // namespace internal |
483 } // namespace v8 | 487 } // namespace v8 |
484 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 488 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |