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

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

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Add missing ia32 lithium codegen. Created 7 years, 2 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
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 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 #endif 2659 #endif
2660 } 2660 }
2661 2661
2662 2662
2663 void MacroAssembler::Call(Handle<Code> code_object, 2663 void MacroAssembler::Call(Handle<Code> code_object,
2664 RelocInfo::Mode rmode, 2664 RelocInfo::Mode rmode,
2665 TypeFeedbackId ast_id) { 2665 TypeFeedbackId ast_id) {
2666 #ifdef DEBUG 2666 #ifdef DEBUG
2667 int end_position = pc_offset() + CallSize(code_object); 2667 int end_position = pc_offset() + CallSize(code_object);
2668 #endif 2668 #endif
2669 ASSERT(RelocInfo::IsCodeTarget(rmode)); 2669 ASSERT(RelocInfo::IsCodeTarget(rmode) ||
2670 rmode == RelocInfo::CODE_AGE_SEQUENCE);
2670 call(code_object, rmode, ast_id); 2671 call(code_object, rmode, ast_id);
2671 #ifdef DEBUG 2672 #ifdef DEBUG
2672 CHECK_EQ(end_position, pc_offset()); 2673 CHECK_EQ(end_position, pc_offset());
2673 #endif 2674 #endif
2674 } 2675 }
2675 2676
2676 2677
2677 void MacroAssembler::Pushad() { 2678 void MacroAssembler::Pushad() {
2678 push(rax); 2679 push(rax);
2679 push(rcx); 2680 push(rcx);
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after
4927 j(greater, &no_memento_available); 4928 j(greater, &no_memento_available);
4928 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize), 4929 CompareRoot(MemOperand(scratch_reg, -AllocationMemento::kSize),
4929 Heap::kAllocationMementoMapRootIndex); 4930 Heap::kAllocationMementoMapRootIndex);
4930 bind(&no_memento_available); 4931 bind(&no_memento_available);
4931 } 4932 }
4932 4933
4933 4934
4934 } } // namespace v8::internal 4935 } } // namespace v8::internal
4935 4936
4936 #endif // V8_TARGET_ARCH_X64 4937 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698