Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 62203018: Remove dead code from IfThenElse and StrictCompare in the compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698