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 #include "src/compiler/code-stub-assembler.h" | 5 #include "src/compiler/code-stub-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 MachineRepresentation::kWord16, result, | 1304 MachineRepresentation::kWord16, result, |
1305 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code); | 1305 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code); |
1306 var_result.Bind(result); | 1306 var_result.Bind(result); |
1307 Goto(&if_done); | 1307 Goto(&if_done); |
1308 } | 1308 } |
1309 | 1309 |
1310 Bind(&if_done); | 1310 Bind(&if_done); |
1311 return var_result.value(); | 1311 return var_result.value(); |
1312 } | 1312 } |
1313 | 1313 |
| 1314 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
| 1315 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
| 1316 value); |
| 1317 } |
| 1318 |
1314 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, | 1319 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
1315 Label* if_false) { | 1320 Label* if_false) { |
1316 Label if_condition_is_true(this), if_condition_is_false(this); | 1321 Label if_condition_is_true(this), if_condition_is_false(this); |
1317 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 1322 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
1318 Bind(&if_condition_is_true); | 1323 Bind(&if_condition_is_true); |
1319 Goto(if_true); | 1324 Goto(if_true); |
1320 Bind(&if_condition_is_false); | 1325 Bind(&if_condition_is_false); |
1321 Goto(if_false); | 1326 Goto(if_false); |
1322 } | 1327 } |
1323 | 1328 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 } | 1754 } |
1750 } | 1755 } |
1751 } | 1756 } |
1752 | 1757 |
1753 bound_ = true; | 1758 bound_ = true; |
1754 } | 1759 } |
1755 | 1760 |
1756 } // namespace compiler | 1761 } // namespace compiler |
1757 } // namespace internal | 1762 } // namespace internal |
1758 } // namespace v8 | 1763 } // namespace v8 |
OLD | NEW |