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

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

Issue 1759913002: Make precompiler work with product mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 9 months 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
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 5365 matching lines...) Expand 10 before | Expand all | Expand 10 after
5376 5376
5377 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, 5377 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone,
5378 bool opt) const { 5378 bool opt) const {
5379 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); 5379 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall);
5380 } 5380 }
5381 5381
5382 5382
5383 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5383 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5384 __ Comment("GotoInstr"); 5384 __ Comment("GotoInstr");
5385 if (!compiler->is_optimizing()) { 5385 if (!compiler->is_optimizing()) {
5386 if (FLAG_emit_edge_counters) { 5386 if (FLAG_reorder_basic_blocks) {
5387 compiler->EmitEdgeCounter(block()->preorder_number()); 5387 compiler->EmitEdgeCounter(block()->preorder_number());
5388 } 5388 }
5389 // Add a deoptimization descriptor for deoptimizing instructions that 5389 // Add a deoptimization descriptor for deoptimizing instructions that
5390 // may be inserted before this instruction. 5390 // may be inserted before this instruction.
5391 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, 5391 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
5392 GetDeoptId(), 5392 GetDeoptId(),
5393 TokenPosition::kNoSource); 5393 TokenPosition::kNoSource);
5394 } 5394 }
5395 if (HasParallelMove()) { 5395 if (HasParallelMove()) {
5396 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); 5396 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move());
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
5598 1, 5598 1,
5599 locs()); 5599 locs());
5600 __ lw(result, Address(SP, 1 * kWordSize)); 5600 __ lw(result, Address(SP, 1 * kWordSize));
5601 __ addiu(SP, SP, Immediate(2 * kWordSize)); 5601 __ addiu(SP, SP, Immediate(2 * kWordSize));
5602 } 5602 }
5603 5603
5604 5604
5605 } // namespace dart 5605 } // namespace dart
5606 5606
5607 #endif // defined TARGET_ARCH_MIPS 5607 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698