| 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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 MachineRepresentation::kWord16, result, | 1269 MachineRepresentation::kWord16, result, |
| 1270 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code); | 1270 IntPtrConstant(SeqTwoByteString::kHeaderSize - kHeapObjectTag), code); |
| 1271 var_result.Bind(result); | 1271 var_result.Bind(result); |
| 1272 Goto(&if_done); | 1272 Goto(&if_done); |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 Bind(&if_done); | 1275 Bind(&if_done); |
| 1276 return var_result.value(); | 1276 return var_result.value(); |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
| 1280 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
| 1281 value); |
| 1282 } |
| 1283 |
| 1279 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, | 1284 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
| 1280 Label* if_false) { | 1285 Label* if_false) { |
| 1281 Label if_condition_is_true(this), if_condition_is_false(this); | 1286 Label if_condition_is_true(this), if_condition_is_false(this); |
| 1282 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 1287 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
| 1283 Bind(&if_condition_is_true); | 1288 Bind(&if_condition_is_true); |
| 1284 Goto(if_true); | 1289 Goto(if_true); |
| 1285 Bind(&if_condition_is_false); | 1290 Bind(&if_condition_is_false); |
| 1286 Goto(if_false); | 1291 Goto(if_false); |
| 1287 } | 1292 } |
| 1288 | 1293 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 } | 1719 } |
| 1715 } | 1720 } |
| 1716 } | 1721 } |
| 1717 | 1722 |
| 1718 bound_ = true; | 1723 bound_ = true; |
| 1719 } | 1724 } |
| 1720 | 1725 |
| 1721 } // namespace compiler | 1726 } // namespace compiler |
| 1722 } // namespace internal | 1727 } // namespace internal |
| 1723 } // namespace v8 | 1728 } // namespace v8 |
| OLD | NEW |