| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 V(Float64GreaterThanOrEqual) \ | 48 V(Float64GreaterThanOrEqual) \ |
| 49 V(IntPtrAdd) \ | 49 V(IntPtrAdd) \ |
| 50 V(IntPtrSub) \ | 50 V(IntPtrSub) \ |
| 51 V(Int32Add) \ | 51 V(Int32Add) \ |
| 52 V(Int32Sub) \ | 52 V(Int32Sub) \ |
| 53 V(Int32Mul) \ | 53 V(Int32Mul) \ |
| 54 V(Int32GreaterThan) \ | 54 V(Int32GreaterThan) \ |
| 55 V(Int32GreaterThanOrEqual) \ | 55 V(Int32GreaterThanOrEqual) \ |
| 56 V(Int32LessThan) \ | 56 V(Int32LessThan) \ |
| 57 V(Int32LessThanOrEqual) \ | 57 V(Int32LessThanOrEqual) \ |
| 58 V(Uint32LessThan) \ |
| 58 V(WordEqual) \ | 59 V(WordEqual) \ |
| 59 V(WordNotEqual) \ | 60 V(WordNotEqual) \ |
| 60 V(WordOr) \ | 61 V(WordOr) \ |
| 61 V(WordAnd) \ | 62 V(WordAnd) \ |
| 62 V(WordXor) \ | 63 V(WordXor) \ |
| 63 V(WordShl) \ | 64 V(WordShl) \ |
| 64 V(WordShr) \ | 65 V(WordShr) \ |
| 65 V(WordSar) \ | 66 V(WordSar) \ |
| 66 V(WordRor) \ | 67 V(WordRor) \ |
| 67 V(Word32Equal) \ | 68 V(Word32Equal) \ |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // Returns a node that is true if the given bit is set in |word32|. | 302 // Returns a node that is true if the given bit is set in |word32|. |
| 302 template <typename T> | 303 template <typename T> |
| 303 Node* BitFieldDecode(Node* word32) { | 304 Node* BitFieldDecode(Node* word32) { |
| 304 return BitFieldDecode(word32, T::kShift, T::kMask); | 305 return BitFieldDecode(word32, T::kShift, T::kMask); |
| 305 } | 306 } |
| 306 | 307 |
| 307 Node* BitFieldDecode(Node* word32, uint32_t shift, uint32_t mask); | 308 Node* BitFieldDecode(Node* word32, uint32_t shift, uint32_t mask); |
| 308 | 309 |
| 309 // Branching helpers. | 310 // Branching helpers. |
| 310 // TODO(danno): Can we be more cleverish wrt. edge-split? | 311 // TODO(danno): Can we be more cleverish wrt. edge-split? |
| 312 void BranchIf(Node* condition, Label* if_true, Label* if_false); |
| 311 void BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, Label* if_false); | 313 void BranchIfInt32LessThan(Node* a, Node* b, Label* if_true, Label* if_false); |
| 312 void BranchIfSmiLessThan(Node* a, Node* b, Label* if_true, Label* if_false); | 314 void BranchIfSmiLessThan(Node* a, Node* b, Label* if_true, Label* if_false); |
| 313 void BranchIfSmiLessThanOrEqual(Node* a, Node* b, Label* if_true, | 315 void BranchIfSmiLessThanOrEqual(Node* a, Node* b, Label* if_true, |
| 314 Label* if_false); | 316 Label* if_false); |
| 315 void BranchIfFloat64Equal(Node* a, Node* b, Label* if_true, Label* if_false); | 317 void BranchIfFloat64Equal(Node* a, Node* b, Label* if_true, Label* if_false); |
| 316 void BranchIfFloat64LessThan(Node* a, Node* b, Label* if_true, | 318 void BranchIfFloat64LessThan(Node* a, Node* b, Label* if_true, |
| 317 Label* if_false); | 319 Label* if_false); |
| 318 void BranchIfFloat64LessThanOrEqual(Node* a, Node* b, Label* if_true, | 320 void BranchIfFloat64LessThanOrEqual(Node* a, Node* b, Label* if_true, |
| 319 Label* if_false); | 321 Label* if_false); |
| 320 void BranchIfFloat64GreaterThan(Node* a, Node* b, Label* if_true, | 322 void BranchIfFloat64GreaterThan(Node* a, Node* b, Label* if_true, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 // Map of variables to the list of value nodes that have been added from each | 404 // Map of variables to the list of value nodes that have been added from each |
| 403 // merge path in their order of merging. | 405 // merge path in their order of merging. |
| 404 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 406 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
| 405 }; | 407 }; |
| 406 | 408 |
| 407 } // namespace compiler | 409 } // namespace compiler |
| 408 } // namespace internal | 410 } // namespace internal |
| 409 } // namespace v8 | 411 } // namespace v8 |
| 410 | 412 |
| 411 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 413 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |