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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.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_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // PC marker. 139 // PC marker.
140 builder->AddPcMarker(previous->code(), slot_ix++); 140 builder->AddPcMarker(previous->code(), slot_ix++);
141 builder->AddCallerFp(slot_ix++); 141 builder->AddCallerFp(slot_ix++);
142 builder->AddCallerPc(slot_ix++); 142 builder->AddCallerPc(slot_ix++);
143 143
144 // For the outermost environment, set the incoming arguments. 144 // For the outermost environment, set the incoming arguments.
145 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) { 145 for (intptr_t i = previous->fixed_parameter_count() - 1; i >= 0; i--) {
146 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++); 146 builder->AddCopy(previous->ValueAt(i), previous->LocationAt(i), slot_ix++);
147 } 147 }
148 148
149 const DeoptInfo& deopt_info = 149 return builder->CreateDeoptInfo(deopt_table);
150 DeoptInfo::Handle(builder->CreateDeoptInfo(deopt_table));
151 return deopt_info.raw();
152 } 150 }
153 151
154 152
155 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 153 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
156 intptr_t stub_ix) { 154 intptr_t stub_ix) {
157 // Calls do not need stubs, they share a deoptimization trampoline. 155 // Calls do not need stubs, they share a deoptimization trampoline.
158 ASSERT(reason() != ICData::kDeoptAtCall); 156 ASSERT(reason() != ICData::kDeoptAtCall);
159 Assembler* assem = compiler->assembler(); 157 Assembler* assem = compiler->assembler();
160 #define __ assem-> 158 #define __ assem->
161 __ Comment("Deopt stub for id %" Pd "", deopt_id()); 159 __ Comment("Deopt stub for id %" Pd "", deopt_id());
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1747 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1750 UNIMPLEMENTED(); 1748 UNIMPLEMENTED();
1751 } 1749 }
1752 1750
1753 1751
1754 #undef __ 1752 #undef __
1755 1753
1756 } // namespace dart 1754 } // namespace dart
1757 1755
1758 #endif // defined TARGET_ARCH_ARM64 1756 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698