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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 5 years, 6 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/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 __ LoadObject(S4, arguments_descriptor); 269 __ LoadObject(S4, arguments_descriptor);
270 270
271 // Load closure function code in T2. 271 // Load closure function code in T2.
272 // S4: arguments descriptor array. 272 // S4: arguments descriptor array.
273 // S5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). 273 // S5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value).
274 ASSERT(locs()->in(0).reg() == T0); 274 ASSERT(locs()->in(0).reg() == T0);
275 __ LoadImmediate(S5, 0); 275 __ LoadImmediate(S5, 0);
276 __ lw(T2, FieldAddress(T0, Function::instructions_offset())); 276 __ lw(T2, FieldAddress(T0, Function::instructions_offset()));
277 __ AddImmediate(T2, Instructions::HeaderSize() - kHeapObjectTag); 277 __ AddImmediate(T2, Instructions::HeaderSize() - kHeapObjectTag);
278 __ jalr(T2); 278 __ jalr(T2);
279 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
280 deopt_id(),
281 token_pos());
282 compiler->RecordSafepoint(locs()); 279 compiler->RecordSafepoint(locs());
283 // Marks either the continuation point in unoptimized code or the 280 // Marks either the continuation point in unoptimized code or the
284 // deoptimization point in optimized code, after call. 281 // deoptimization point in optimized code, after call.
285 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); 282 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id());
286 if (compiler->is_optimizing()) { 283 if (compiler->is_optimizing()) {
287 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); 284 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos());
288 } else {
289 // Add deoptimization continuation point after the call and before the
290 // arguments are removed.
291 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
292 deopt_id_after,
293 token_pos());
294 } 285 }
286 // Add deoptimization continuation point after the call and before the
287 // arguments are removed.
288 // In optimized code this descriptor is needed for exception handling.
289 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
290 deopt_id_after,
291 token_pos());
295 __ Drop(argument_count); 292 __ Drop(argument_count);
296 } 293 }
297 294
298 295
299 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone, 296 LocationSummary* LoadLocalInstr::MakeLocationSummary(Zone* zone,
300 bool opt) const { 297 bool opt) const {
301 return LocationSummary::Make(zone, 298 return LocationSummary::Make(zone,
302 0, 299 0,
303 Location::RequiresRegister(), 300 Location::RequiresRegister(),
304 LocationSummary::kNoCall); 301 LocationSummary::kNoCall);
(...skipping 5321 matching lines...) Expand 10 before | Expand all | Expand 10 after
5626 1, 5623 1,
5627 locs()); 5624 locs());
5628 __ lw(result, Address(SP, 1 * kWordSize)); 5625 __ lw(result, Address(SP, 1 * kWordSize));
5629 __ addiu(SP, SP, Immediate(2 * kWordSize)); 5626 __ addiu(SP, SP, Immediate(2 * kWordSize));
5630 } 5627 }
5631 5628
5632 5629
5633 } // namespace dart 5630 } // namespace dart
5634 5631
5635 #endif // defined TARGET_ARCH_MIPS 5632 #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