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

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

Issue 6310009: Enable compilation of very simple functions in x64 crankshaft.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 2943
2944 void Assembler::emit_sse_operand(XMMRegister dst, Register src) { 2944 void Assembler::emit_sse_operand(XMMRegister dst, Register src) {
2945 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); 2945 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());
2946 } 2946 }
2947 2947
2948 void Assembler::emit_sse_operand(Register dst, XMMRegister src) { 2948 void Assembler::emit_sse_operand(Register dst, XMMRegister src) {
2949 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); 2949 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());
2950 } 2950 }
2951 2951
2952 2952
2953 void Assembler::db(uint8_t data) {
2954 EnsureSpace ensure_space(this);
2955 emit(data);
2956 }
2957
2958
2953 void Assembler::dd(uint32_t data) { 2959 void Assembler::dd(uint32_t data) {
2954 EnsureSpace ensure_space(this); 2960 EnsureSpace ensure_space(this);
2955 emitl(data); 2961 emitl(data);
2956 } 2962 }
2957 2963
2958 2964
2959 // Relocation information implementations. 2965 // Relocation information implementations.
2960 2966
2961 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { 2967 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
2962 ASSERT(rmode != RelocInfo::NONE); 2968 ASSERT(rmode != RelocInfo::NONE);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 // specially coded on x64 means that it is a relative 32 bit address, as used 3007 // specially coded on x64 means that it is a relative 32 bit address, as used
3002 // by branch instructions. 3008 // by branch instructions.
3003 return (1 << rmode_) & kApplyMask; 3009 return (1 << rmode_) & kApplyMask;
3004 } 3010 }
3005 3011
3006 3012
3007 3013
3008 } } // namespace v8::internal 3014 } } // namespace v8::internal
3009 3015
3010 #endif // V8_TARGET_ARCH_X64 3016 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/deoptimizer-x64.cc » ('j') | src/x64/deoptimizer-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698