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

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

Issue 15743019: Consolidate debug stubs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/debugger.cc ('k') | runtime/vm/intermediate_language_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) 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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } 420 }
421 } else { 421 } else {
422 // Call stub, load IC data in register. The stub will update ICData if 422 // Call stub, load IC data in register. The stub will update ICData if
423 // necessary. 423 // necessary.
424 Register ic_data_reg = locs->temp(0).reg(); 424 Register ic_data_reg = locs->temp(0).reg();
425 ASSERT(ic_data_reg == R5); // Stub depends on it. 425 ASSERT(ic_data_reg == R5); // Stub depends on it.
426 __ LoadObject(ic_data_reg, equality_ic_data); 426 __ LoadObject(ic_data_reg, equality_ic_data);
427 // Pass left in R1 and right in R0. 427 // Pass left in R1 and right in R0.
428 compiler->GenerateCall(token_pos, 428 compiler->GenerateCall(token_pos,
429 &StubCode::EqualityWithNullArgLabel(), 429 &StubCode::EqualityWithNullArgLabel(),
430 PcDescriptors::kEqualNull, 430 PcDescriptors::kRuntimeCall,
431 locs); 431 locs);
432 } 432 }
433 __ Bind(&check_ne); 433 __ Bind(&check_ne);
434 if (kind == Token::kNE) { 434 if (kind == Token::kNE) {
435 // Negate the condition: true label returns false and vice versa. 435 // Negate the condition: true label returns false and vice versa.
436 __ CompareObject(R0, Bool::True()); 436 __ CompareObject(R0, Bool::True());
437 __ LoadObject(R0, Bool::True(), NE); 437 __ LoadObject(R0, Bool::True(), NE);
438 __ LoadObject(R0, Bool::False(), EQ); 438 __ LoadObject(R0, Bool::False(), EQ);
439 } 439 }
440 __ Bind(&equality_done); 440 __ Bind(&equality_done);
(...skipping 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after
3004 compiler->GenerateCall(token_pos(), 3004 compiler->GenerateCall(token_pos(),
3005 &label, 3005 &label,
3006 PcDescriptors::kOther, 3006 PcDescriptors::kOther,
3007 locs()); 3007 locs());
3008 __ Drop(2); // Discard type arguments and receiver. 3008 __ Drop(2); // Discard type arguments and receiver.
3009 } 3009 }
3010 3010
3011 } // namespace dart 3011 } // namespace dart
3012 3012
3013 #endif // defined TARGET_ARCH_ARM 3013 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698