| 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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" | 
| 9 | 9 | 
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" | 
| (...skipping 5364 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5375 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 5375 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 
| 5376                                                 bool opt) const { | 5376                                                 bool opt) const { | 
| 5377   return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 5377   return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 
| 5378 } | 5378 } | 
| 5379 | 5379 | 
| 5380 | 5380 | 
| 5381 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5381 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 
| 5382   __ Comment("GotoInstr"); | 5382   __ Comment("GotoInstr"); | 
| 5383   if (!compiler->is_optimizing()) { | 5383   if (!compiler->is_optimizing()) { | 
| 5384     if (FLAG_emit_edge_counters) { | 5384     if (FLAG_emit_edge_counters) { | 
| 5385       compiler->EmitEdgeCounter(); | 5385       compiler->EmitEdgeCounter(block()->preorder_number()); | 
| 5386     } | 5386     } | 
| 5387     // Add a deoptimization descriptor for deoptimizing instructions that | 5387     // Add a deoptimization descriptor for deoptimizing instructions that | 
| 5388     // may be inserted before this instruction.  On MIPS this descriptor | 5388     // may be inserted before this instruction. | 
| 5389     // points after the edge counter code so that we can reuse the same |  | 
| 5390     // pattern matching code as at call sites, which matches backwards from |  | 
| 5391     // the end of the pattern. |  | 
| 5392     compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 5389     compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 
| 5393                                    GetDeoptId(), | 5390                                    GetDeoptId(), | 
| 5394                                    Scanner::kNoSourcePos); | 5391                                    Scanner::kNoSourcePos); | 
| 5395   } | 5392   } | 
| 5396   if (HasParallelMove()) { | 5393   if (HasParallelMove()) { | 
| 5397     compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 5394     compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 
| 5398   } | 5395   } | 
| 5399 | 5396 | 
| 5400   // We can fall through if the successor is the next block in the list. | 5397   // We can fall through if the successor is the next block in the list. | 
| 5401   // Otherwise, we need a jump. | 5398   // Otherwise, we need a jump. | 
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5599                                 1, | 5596                                 1, | 
| 5600                                 locs()); | 5597                                 locs()); | 
| 5601   __ lw(result, Address(SP, 1 * kWordSize)); | 5598   __ lw(result, Address(SP, 1 * kWordSize)); | 
| 5602   __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5599   __ addiu(SP, SP, Immediate(2 * kWordSize)); | 
| 5603 } | 5600 } | 
| 5604 | 5601 | 
| 5605 | 5602 | 
| 5606 }  // namespace dart | 5603 }  // namespace dart | 
| 5607 | 5604 | 
| 5608 #endif  // defined TARGET_ARCH_MIPS | 5605 #endif  // defined TARGET_ARCH_MIPS | 
| OLD | NEW | 
|---|