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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.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 __ jmp(&equality_done); 401 __ jmp(&equality_done);
402 } 402 }
403 } else { 403 } else {
404 // Call stub, load IC data in register. The stub will update ICData if 404 // Call stub, load IC data in register. The stub will update ICData if
405 // necessary. 405 // necessary.
406 Register ic_data_reg = locs->temp(0).reg(); 406 Register ic_data_reg = locs->temp(0).reg();
407 ASSERT(ic_data_reg == ECX); // Stub depends on it. 407 ASSERT(ic_data_reg == ECX); // Stub depends on it.
408 __ LoadObject(ic_data_reg, equality_ic_data); 408 __ LoadObject(ic_data_reg, equality_ic_data);
409 compiler->GenerateCall(token_pos, 409 compiler->GenerateCall(token_pos,
410 &StubCode::EqualityWithNullArgLabel(), 410 &StubCode::EqualityWithNullArgLabel(),
411 PcDescriptors::kEqualNull, 411 PcDescriptors::kRuntimeCall,
412 locs); 412 locs);
413 __ Drop(2); 413 __ Drop(2);
414 } 414 }
415 __ Bind(&check_ne); 415 __ Bind(&check_ne);
416 if (kind == Token::kNE) { 416 if (kind == Token::kNE) {
417 Label true_label, done; 417 Label true_label, done;
418 // Negate the condition: true label returns false and vice versa. 418 // Negate the condition: true label returns false and vice versa.
419 __ CompareObject(EAX, Bool::True()); 419 __ CompareObject(EAX, Bool::True());
420 __ j(EQUAL, &true_label, Assembler::kNearJump); 420 __ j(EQUAL, &true_label, Assembler::kNearJump);
421 __ LoadObject(EAX, Bool::True()); 421 __ LoadObject(EAX, Bool::True());
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4685 PcDescriptors::kOther, 4685 PcDescriptors::kOther,
4686 locs()); 4686 locs());
4687 __ Drop(2); // Discard type arguments and receiver. 4687 __ Drop(2); // Discard type arguments and receiver.
4688 } 4688 }
4689 4689
4690 } // namespace dart 4690 } // namespace dart
4691 4691
4692 #undef __ 4692 #undef __
4693 4693
4694 #endif // defined TARGET_ARCH_IA32 4694 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698