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

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

Issue 19595004: Rename AllocationSiteInfo to AllocationMemento (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/arm/macro-assembler-arm.h ('k') | src/builtins.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 3729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3740 ldr(r2, FieldMemOperand(r2, JSObject::kElementsOffset)); 3740 ldr(r2, FieldMemOperand(r2, JSObject::kElementsOffset));
3741 cmp(r2, empty_fixed_array_value); 3741 cmp(r2, empty_fixed_array_value);
3742 b(ne, call_runtime); 3742 b(ne, call_runtime);
3743 3743
3744 ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset)); 3744 ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset));
3745 cmp(r2, null_value); 3745 cmp(r2, null_value);
3746 b(ne, &next); 3746 b(ne, &next);
3747 } 3747 }
3748 3748
3749 3749
3750 void MacroAssembler::TestJSArrayForAllocationSiteInfo( 3750 void MacroAssembler::TestJSArrayForAllocationMemento(
3751 Register receiver_reg, 3751 Register receiver_reg,
3752 Register scratch_reg) { 3752 Register scratch_reg) {
3753 Label no_info_available; 3753 Label no_memento_available;
3754 ExternalReference new_space_start = 3754 ExternalReference new_space_start =
3755 ExternalReference::new_space_start(isolate()); 3755 ExternalReference::new_space_start(isolate());
3756 ExternalReference new_space_allocation_top = 3756 ExternalReference new_space_allocation_top =
3757 ExternalReference::new_space_allocation_top_address(isolate()); 3757 ExternalReference::new_space_allocation_top_address(isolate());
3758 add(scratch_reg, receiver_reg, 3758 add(scratch_reg, receiver_reg,
3759 Operand(JSArray::kSize + AllocationSiteInfo::kSize - kHeapObjectTag)); 3759 Operand(JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag));
3760 cmp(scratch_reg, Operand(new_space_start)); 3760 cmp(scratch_reg, Operand(new_space_start));
3761 b(lt, &no_info_available); 3761 b(lt, &no_memento_available);
3762 mov(ip, Operand(new_space_allocation_top)); 3762 mov(ip, Operand(new_space_allocation_top));
3763 ldr(ip, MemOperand(ip)); 3763 ldr(ip, MemOperand(ip));
3764 cmp(scratch_reg, ip); 3764 cmp(scratch_reg, ip);
3765 b(gt, &no_info_available); 3765 b(gt, &no_memento_available);
3766 ldr(scratch_reg, MemOperand(scratch_reg, -AllocationSiteInfo::kSize)); 3766 ldr(scratch_reg, MemOperand(scratch_reg, -AllocationMemento::kSize));
3767 cmp(scratch_reg, 3767 cmp(scratch_reg,
3768 Operand(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); 3768 Operand(Handle<Map>(isolate()->heap()->allocation_memento_map())));
3769 bind(&no_info_available); 3769 bind(&no_memento_available);
3770 } 3770 }
3771 3771
3772 3772
3773 #ifdef DEBUG 3773 #ifdef DEBUG
3774 bool AreAliased(Register reg1, 3774 bool AreAliased(Register reg1,
3775 Register reg2, 3775 Register reg2,
3776 Register reg3, 3776 Register reg3,
3777 Register reg4, 3777 Register reg4,
3778 Register reg5, 3778 Register reg5,
3779 Register reg6) { 3779 Register reg6) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3828 void CodePatcher::EmitCondition(Condition cond) { 3828 void CodePatcher::EmitCondition(Condition cond) {
3829 Instr instr = Assembler::instr_at(masm_.pc_); 3829 Instr instr = Assembler::instr_at(masm_.pc_);
3830 instr = (instr & ~kCondMask) | cond; 3830 instr = (instr & ~kCondMask) | cond;
3831 masm_.emit(instr); 3831 masm_.emit(instr);
3832 } 3832 }
3833 3833
3834 3834
3835 } } // namespace v8::internal 3835 } } // namespace v8::internal
3836 3836
3837 #endif // V8_TARGET_ARCH_ARM 3837 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698