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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_ia32.cc ('k') | runtime/vm/longjump.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 ASSERT(ic_data_reg == RBX); // Stub depends on it. 399 ASSERT(ic_data_reg == RBX); // Stub depends on it.
400 __ LoadObject(ic_data_reg, equality_ic_data); 400 __ LoadObject(ic_data_reg, equality_ic_data);
401 compiler->GenerateCall(token_pos, 401 compiler->GenerateCall(token_pos,
402 &StubCode::EqualityWithNullArgLabel(), 402 &StubCode::EqualityWithNullArgLabel(),
403 PcDescriptors::kOther, 403 PcDescriptors::kOther,
404 locs); 404 locs);
405 __ Drop(2); 405 __ Drop(2);
406 } 406 }
407 __ Bind(&check_ne); 407 __ Bind(&check_ne);
408 if (kind == Token::kNE) { 408 if (kind == Token::kNE) {
409 Label false_label, true_label, done; 409 Label true_label, done;
410 // Negate the condition: true label returns false and vice versa. 410 // Negate the condition: true label returns false and vice versa.
411 __ CompareObject(RAX, Bool::True()); 411 __ CompareObject(RAX, Bool::True());
412 __ j(EQUAL, &true_label, Assembler::kNearJump); 412 __ j(EQUAL, &true_label, Assembler::kNearJump);
413 __ Bind(&false_label);
414 __ LoadObject(RAX, Bool::True()); 413 __ LoadObject(RAX, Bool::True());
415 __ jmp(&done, Assembler::kNearJump); 414 __ jmp(&done, Assembler::kNearJump);
416 __ Bind(&true_label); 415 __ Bind(&true_label);
417 __ LoadObject(RAX, Bool::False()); 416 __ LoadObject(RAX, Bool::False());
418 __ Bind(&done); 417 __ Bind(&done);
419 } 418 }
420 __ Bind(&equality_done); 419 __ Bind(&equality_done);
421 } 420 }
422 421
423 422
(...skipping 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 PcDescriptors::kOther, 3356 PcDescriptors::kOther,
3358 locs()); 3357 locs());
3359 __ Drop(2); // Discard type arguments and receiver. 3358 __ Drop(2); // Discard type arguments and receiver.
3360 } 3359 }
3361 3360
3362 } // namespace dart 3361 } // namespace dart
3363 3362
3364 #undef __ 3363 #undef __
3365 3364
3366 #endif // defined TARGET_ARCH_X64 3365 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/longjump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698