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

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

Issue 13502002: Support FrameLookup vm test on ARM, requiring among other things: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/intermediate_language_arm.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 ASSERT(ic_data_reg == ECX); // Stub depends on it. 401 ASSERT(ic_data_reg == ECX); // Stub depends on it.
402 __ LoadObject(ic_data_reg, equality_ic_data); 402 __ LoadObject(ic_data_reg, equality_ic_data);
403 compiler->GenerateCall(token_pos, 403 compiler->GenerateCall(token_pos,
404 &StubCode::EqualityWithNullArgLabel(), 404 &StubCode::EqualityWithNullArgLabel(),
405 PcDescriptors::kOther, 405 PcDescriptors::kOther,
406 locs); 406 locs);
407 __ Drop(2); 407 __ Drop(2);
408 } 408 }
409 __ Bind(&check_ne); 409 __ Bind(&check_ne);
410 if (kind == Token::kNE) { 410 if (kind == Token::kNE) {
411 Label false_label, true_label, done; 411 Label true_label, done;
412 // Negate the condition: true label returns false and vice versa. 412 // Negate the condition: true label returns false and vice versa.
413 __ CompareObject(EAX, Bool::True()); 413 __ CompareObject(EAX, Bool::True());
414 __ j(EQUAL, &true_label, Assembler::kNearJump); 414 __ j(EQUAL, &true_label, Assembler::kNearJump);
415 __ Bind(&false_label);
416 __ LoadObject(EAX, Bool::True()); 415 __ LoadObject(EAX, Bool::True());
417 __ jmp(&done, Assembler::kNearJump); 416 __ jmp(&done, Assembler::kNearJump);
418 __ Bind(&true_label); 417 __ Bind(&true_label);
419 __ LoadObject(EAX, Bool::False()); 418 __ LoadObject(EAX, Bool::False());
420 __ Bind(&done); 419 __ Bind(&done);
421 } 420 }
422 __ Bind(&equality_done); 421 __ Bind(&equality_done);
423 } 422 }
424 423
425 424
(...skipping 3294 matching lines...) Expand 10 before | Expand all | Expand 10 after
3720 PcDescriptors::kOther, 3719 PcDescriptors::kOther,
3721 locs()); 3720 locs());
3722 __ Drop(2); // Discard type arguments and receiver. 3721 __ Drop(2); // Discard type arguments and receiver.
3723 } 3722 }
3724 3723
3725 } // namespace dart 3724 } // namespace dart
3726 3725
3727 #undef __ 3726 #undef __
3728 3727
3729 #endif // defined TARGET_ARCH_IA32 3728 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698