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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 12426008: Load/Store stub compilation refactoring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « src/ia32/macro-assembler-ia32.h ('k') | src/ia32/stub-cache-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 611 }
612 612
613 Label success; 613 Label success;
614 CompareMap(obj, map, &success, mode); 614 CompareMap(obj, map, &success, mode);
615 j(not_equal, fail); 615 j(not_equal, fail);
616 bind(&success); 616 bind(&success);
617 } 617 }
618 618
619 619
620 void MacroAssembler::DispatchMap(Register obj, 620 void MacroAssembler::DispatchMap(Register obj,
621 Register unused,
621 Handle<Map> map, 622 Handle<Map> map,
622 Handle<Code> success, 623 Handle<Code> success,
623 SmiCheckType smi_check_type) { 624 SmiCheckType smi_check_type) {
624 Label fail; 625 Label fail;
625 if (smi_check_type == DO_SMI_CHECK) { 626 if (smi_check_type == DO_SMI_CHECK) {
626 JumpIfSmi(obj, &fail); 627 JumpIfSmi(obj, &fail);
627 } 628 }
628 cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map)); 629 cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map));
629 j(equal, success); 630 j(equal, success);
630 631
(...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 j(greater, &no_info_available); 3116 j(greater, &no_info_available);
3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 3117 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); 3118 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map())));
3118 bind(&no_info_available); 3119 bind(&no_info_available);
3119 } 3120 }
3120 3121
3121 3122
3122 } } // namespace v8::internal 3123 } } // namespace v8::internal
3123 3124
3124 #endif // V8_TARGET_ARCH_IA32 3125 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698