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

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

Issue 298883009: Eliminate some unnecessary handle allocations in the compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 builder->AddCallerPc(slot_ix++); 143 builder->AddCallerPc(slot_ix++);
144 144
145 // PC marker. 145 // PC marker.
146 builder->AddPcMarker(previous->code(), slot_ix++); 146 builder->AddPcMarker(previous->code(), slot_ix++);
147 147
148 // For the outermost environment, set the incoming arguments. 148 // For the outermost environment, set the incoming arguments.
149 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) { 149 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) {
150 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++); 150 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++);
151 } 151 }
152 152
153 const DeoptInfo& deopt_info = 153 return builder->CreateDeoptInfo(deopt_table);
154 DeoptInfo::Handle(builder->CreateDeoptInfo(deopt_table));
155 return deopt_info.raw();
156 } 154 }
157 155
158 156
159 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 157 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
160 intptr_t stub_ix) { 158 intptr_t stub_ix) {
161 // Calls do not need stubs, they share a deoptimization trampoline. 159 // Calls do not need stubs, they share a deoptimization trampoline.
162 ASSERT(reason() != ICData::kDeoptAtCall); 160 ASSERT(reason() != ICData::kDeoptAtCall);
163 Assembler* assem = compiler->assembler(); 161 Assembler* assem = compiler->assembler();
164 #define __ assem-> 162 #define __ assem->
165 __ Comment("Deopt stub for id %" Pd "", deopt_id()); 163 __ Comment("Deopt stub for id %" Pd "", deopt_id());
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 __ AddImmediate(SP, kDoubleSize); 1827 __ AddImmediate(SP, kDoubleSize);
1830 } 1828 }
1831 1829
1832 1830
1833 #undef __ 1831 #undef __
1834 1832
1835 1833
1836 } // namespace dart 1834 } // namespace dart
1837 1835
1838 #endif // defined TARGET_ARCH_MIPS 1836 #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