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

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 235153003: Handlify code allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix mips tests Created 6 years, 8 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2797
2798 void Assembler::RecordConstPool(int size) { 2798 void Assembler::RecordConstPool(int size) {
2799 // We only need this for debugger support, to correctly compute offsets in the 2799 // We only need this for debugger support, to correctly compute offsets in the
2800 // code. 2800 // code.
2801 #ifdef ENABLE_DEBUGGER_SUPPORT 2801 #ifdef ENABLE_DEBUGGER_SUPPORT
2802 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size)); 2802 RecordRelocInfo(RelocInfo::CONST_POOL, static_cast<intptr_t>(size));
2803 #endif 2803 #endif
2804 } 2804 }
2805 2805
2806 2806
2807 MaybeObject* Assembler::AllocateConstantPool(Heap* heap) { 2807 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) {
2808 // No out-of-line constant pool support. 2808 // No out-of-line constant pool support.
2809 UNREACHABLE(); 2809 ASSERT(!FLAG_enable_ool_constant_pool);
2810 return NULL; 2810 return isolate->factory()->empty_constant_pool_array();
2811 } 2811 }
2812 2812
2813 2813
2814 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { 2814 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) {
2815 // No out-of-line constant pool support. 2815 // No out-of-line constant pool support.
2816 UNREACHABLE(); 2816 ASSERT(!FLAG_enable_ool_constant_pool);
2817 return;
2817 } 2818 }
2818 2819
2819 2820
2820 void PatchingAssembler::MovInt64(const Register& rd, int64_t imm) { 2821 void PatchingAssembler::MovInt64(const Register& rd, int64_t imm) {
2821 Label start; 2822 Label start;
2822 bind(&start); 2823 bind(&start);
2823 2824
2824 ASSERT(rd.Is64Bits()); 2825 ASSERT(rd.Is64Bits());
2825 ASSERT(!rd.IsSP()); 2826 ASSERT(!rd.IsSP());
2826 2827
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2883 adr(rd, 0); 2884 adr(rd, 0);
2884 MovInt64(scratch, target_offset); 2885 MovInt64(scratch, target_offset);
2885 add(rd, rd, scratch); 2886 add(rd, rd, scratch);
2886 } 2887 }
2887 } 2888 }
2888 2889
2889 2890
2890 } } // namespace v8::internal 2891 } } // namespace v8::internal
2891 2892
2892 #endif // V8_TARGET_ARCH_ARM64 2893 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/builtins.cc » ('j') | src/factory.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698