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

Side by Side Diff: src/x64/macro-assembler-x64.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/x64/macro-assembler-x64.h ('k') | test/cctest/test-heap.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 4650 matching lines...) Expand 10 before | Expand all | Expand 10 after
4661 // object we've reached through the prototype chain. 4661 // object we've reached through the prototype chain.
4662 cmpq(empty_fixed_array_value, 4662 cmpq(empty_fixed_array_value,
4663 FieldOperand(rcx, JSObject::kElementsOffset)); 4663 FieldOperand(rcx, JSObject::kElementsOffset));
4664 j(not_equal, call_runtime); 4664 j(not_equal, call_runtime);
4665 4665
4666 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); 4666 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset));
4667 cmpq(rcx, null_value); 4667 cmpq(rcx, null_value);
4668 j(not_equal, &next); 4668 j(not_equal, &next);
4669 } 4669 }
4670 4670
4671 void MacroAssembler::TestJSArrayForAllocationSiteInfo( 4671 void MacroAssembler::TestJSArrayForAllocationMemento(
4672 Register receiver_reg, 4672 Register receiver_reg,
4673 Register scratch_reg) { 4673 Register scratch_reg) {
4674 Label no_info_available; 4674 Label no_memento_available;
4675 ExternalReference new_space_start = 4675 ExternalReference new_space_start =
4676 ExternalReference::new_space_start(isolate()); 4676 ExternalReference::new_space_start(isolate());
4677 ExternalReference new_space_allocation_top = 4677 ExternalReference new_space_allocation_top =
4678 ExternalReference::new_space_allocation_top_address(isolate()); 4678 ExternalReference::new_space_allocation_top_address(isolate());
4679 4679
4680 lea(scratch_reg, Operand(receiver_reg, 4680 lea(scratch_reg, Operand(receiver_reg,
4681 JSArray::kSize + AllocationSiteInfo::kSize - kHeapObjectTag)); 4681 JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag));
4682 movq(kScratchRegister, new_space_start); 4682 movq(kScratchRegister, new_space_start);
4683 cmpq(scratch_reg, kScratchRegister); 4683 cmpq(scratch_reg, kScratchRegister);
4684 j(less, &no_info_available); 4684 j(less, &no_memento_available);
4685 cmpq(scratch_reg, ExternalOperand(new_space_allocation_top)); 4685 cmpq(scratch_reg, ExternalOperand(new_space_allocation_top));
4686 j(greater, &no_info_available); 4686 j(greater, &no_memento_available);
4687 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4687 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize),
4688 Heap::kAllocationSiteInfoMapRootIndex); 4688 Heap::kAllocationMementoMapRootIndex);
4689 bind(&no_info_available); 4689 bind(&no_memento_available);
4690 } 4690 }
4691 4691
4692 4692
4693 } } // namespace v8::internal 4693 } } // namespace v8::internal
4694 4694
4695 #endif // V8_TARGET_ARCH_X64 4695 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698