OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
9 | 9 |
10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 AddStaticCallTarget(function); | 1478 AddStaticCallTarget(function); |
1479 __ Drop(argument_count); | 1479 __ Drop(argument_count); |
1480 } | 1480 } |
1481 | 1481 |
1482 | 1482 |
1483 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, | 1483 void FlowGraphCompiler::EmitEqualityRegConstCompare(Register reg, |
1484 const Object& obj, | 1484 const Object& obj, |
1485 bool needs_number_check, | 1485 bool needs_number_check, |
1486 intptr_t token_pos) { | 1486 intptr_t token_pos) { |
1487 __ TraceSimMsg("EqualityRegConstCompare"); | 1487 __ TraceSimMsg("EqualityRegConstCompare"); |
1488 if (needs_number_check && | 1488 if (needs_number_check) { |
1489 (obj.IsMint() || obj.IsDouble() || obj.IsBigint())) { | 1489 ASSERT(!obj.IsMint() && !obj.IsDouble() && !obj.IsBigint()); |
1490 __ addiu(SP, SP, Immediate(-2 * kWordSize)); | 1490 __ addiu(SP, SP, Immediate(-2 * kWordSize)); |
1491 __ sw(reg, Address(SP, 1 * kWordSize)); | 1491 __ sw(reg, Address(SP, 1 * kWordSize)); |
1492 __ LoadObject(TMP, obj); | 1492 __ LoadObject(TMP, obj); |
1493 __ sw(TMP, Address(SP, 0 * kWordSize)); | 1493 __ sw(TMP, Address(SP, 0 * kWordSize)); |
1494 if (is_optimizing()) { | 1494 if (is_optimizing()) { |
1495 __ BranchLinkPatchable( | 1495 __ BranchLinkPatchable( |
1496 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); | 1496 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); |
1497 } else { | 1497 } else { |
1498 __ BranchLinkPatchable( | 1498 __ BranchLinkPatchable( |
1499 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); | 1499 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 __ AddImmediate(SP, kDoubleSize); | 1925 __ AddImmediate(SP, kDoubleSize); |
1926 } | 1926 } |
1927 | 1927 |
1928 | 1928 |
1929 #undef __ | 1929 #undef __ |
1930 | 1930 |
1931 | 1931 |
1932 } // namespace dart | 1932 } // namespace dart |
1933 | 1933 |
1934 #endif // defined TARGET_ARCH_MIPS | 1934 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |