| 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 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 Callable callable = CodeFactory::NonNumberToNumber(isolate()); | 914 Callable callable = CodeFactory::NonNumberToNumber(isolate()); |
| 915 var_value.Bind(CallStub(callable, context, value)); | 915 var_value.Bind(CallStub(callable, context, value)); |
| 916 Goto(&loop); | 916 Goto(&loop); |
| 917 } | 917 } |
| 918 } | 918 } |
| 919 } | 919 } |
| 920 Bind(&done_loop); | 920 Bind(&done_loop); |
| 921 return var_result.value(); | 921 return var_result.value(); |
| 922 } | 922 } |
| 923 | 923 |
| 924 Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
| 925 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
| 926 value); |
| 927 } |
| 928 |
| 924 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, | 929 void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
| 925 Label* if_false) { | 930 Label* if_false) { |
| 926 Label if_condition_is_true(this), if_condition_is_false(this); | 931 Label if_condition_is_true(this), if_condition_is_false(this); |
| 927 Branch(condition, &if_condition_is_true, &if_condition_is_false); | 932 Branch(condition, &if_condition_is_true, &if_condition_is_false); |
| 928 Bind(&if_condition_is_true); | 933 Bind(&if_condition_is_true); |
| 929 Goto(if_true); | 934 Goto(if_true); |
| 930 Bind(&if_condition_is_false); | 935 Bind(&if_condition_is_false); |
| 931 Goto(if_false); | 936 Goto(if_false); |
| 932 } | 937 } |
| 933 | 938 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 } | 1364 } |
| 1360 } | 1365 } |
| 1361 } | 1366 } |
| 1362 | 1367 |
| 1363 bound_ = true; | 1368 bound_ = true; |
| 1364 } | 1369 } |
| 1365 | 1370 |
| 1366 } // namespace compiler | 1371 } // namespace compiler |
| 1367 } // namespace internal | 1372 } // namespace internal |
| 1368 } // namespace v8 | 1373 } // namespace v8 |
| OLD | NEW |