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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 11744020: Rename RelocInfo::NONE to RelocInfo::NONE32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 3989 matching lines...) Expand 10 before | Expand all | Expand 10 after
4000 __ add(r0, r0, Operand(r1, LSL, 14)); 4000 __ add(r0, r0, Operand(r1, LSL, 14));
4001 4001
4002 __ bind(deferred->exit()); 4002 __ bind(deferred->exit());
4003 // 0x41300000 is the top half of 1.0 x 2^20 as a double. 4003 // 0x41300000 is the top half of 1.0 x 2^20 as a double.
4004 // Create this constant using mov/orr to avoid PC relative load. 4004 // Create this constant using mov/orr to avoid PC relative load.
4005 __ mov(r1, Operand(0x41000000)); 4005 __ mov(r1, Operand(0x41000000));
4006 __ orr(r1, r1, Operand(0x300000)); 4006 __ orr(r1, r1, Operand(0x300000));
4007 // Move 0x41300000xxxxxxxx (x = random bits) to VFP. 4007 // Move 0x41300000xxxxxxxx (x = random bits) to VFP.
4008 __ vmov(d7, r0, r1); 4008 __ vmov(d7, r0, r1);
4009 // Move 0x4130000000000000 to VFP. 4009 // Move 0x4130000000000000 to VFP.
4010 __ mov(r0, Operand(0, RelocInfo::NONE)); 4010 __ mov(r0, Operand(0, RelocInfo::NONE32));
4011 __ vmov(d8, r0, r1); 4011 __ vmov(d8, r0, r1);
4012 // Subtract and store the result in the heap number. 4012 // Subtract and store the result in the heap number.
4013 __ vsub(d7, d7, d8); 4013 __ vsub(d7, d7, d8);
4014 } 4014 }
4015 4015
4016 4016
4017 void LCodeGen::DoDeferredRandom(LRandom* instr) { 4017 void LCodeGen::DoDeferredRandom(LRandom* instr) {
4018 __ PrepareCallCFunction(1, scratch0()); 4018 __ PrepareCallCFunction(1, scratch0());
4019 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1); 4019 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1);
4020 // Return value is in r0. 4020 // Return value is in r0.
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
4756 const int mantissa_shift_for_hi_word = 4756 const int mantissa_shift_for_hi_word =
4757 meaningful_bits - HeapNumber::kMantissaBitsInTopWord; 4757 meaningful_bits - HeapNumber::kMantissaBitsInTopWord;
4758 const int mantissa_shift_for_lo_word = 4758 const int mantissa_shift_for_lo_word =
4759 kBitsPerInt - mantissa_shift_for_hi_word; 4759 kBitsPerInt - mantissa_shift_for_hi_word;
4760 masm->mov(scratch, Operand(biased_exponent << HeapNumber::kExponentShift)); 4760 masm->mov(scratch, Operand(biased_exponent << HeapNumber::kExponentShift));
4761 if (mantissa_shift_for_hi_word > 0) { 4761 if (mantissa_shift_for_hi_word > 0) {
4762 masm->mov(loword, Operand(hiword, LSL, mantissa_shift_for_lo_word)); 4762 masm->mov(loword, Operand(hiword, LSL, mantissa_shift_for_lo_word));
4763 masm->orr(hiword, scratch, 4763 masm->orr(hiword, scratch,
4764 Operand(hiword, LSR, mantissa_shift_for_hi_word)); 4764 Operand(hiword, LSR, mantissa_shift_for_hi_word));
4765 } else { 4765 } else {
4766 masm->mov(loword, Operand(0, RelocInfo::NONE)); 4766 masm->mov(loword, Operand(0, RelocInfo::NONE32));
4767 masm->orr(hiword, scratch, 4767 masm->orr(hiword, scratch,
4768 Operand(hiword, LSL, -mantissa_shift_for_hi_word)); 4768 Operand(hiword, LSL, -mantissa_shift_for_hi_word));
4769 } 4769 }
4770 4770
4771 // If least significant bit of biased exponent was not 1 it was corrupted 4771 // If least significant bit of biased exponent was not 1 it was corrupted
4772 // by most significant bit of mantissa so we should fix that. 4772 // by most significant bit of mantissa so we should fix that.
4773 if (!(biased_exponent & 1)) { 4773 if (!(biased_exponent & 1)) {
4774 masm->bic(hiword, hiword, Operand(1 << HeapNumber::kExponentShift)); 4774 masm->bic(hiword, hiword, Operand(1 << HeapNumber::kExponentShift));
4775 } 4775 }
4776 } 4776 }
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
6082 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6082 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6083 __ ldr(result, FieldMemOperand(scratch, 6083 __ ldr(result, FieldMemOperand(scratch,
6084 FixedArray::kHeaderSize - kPointerSize)); 6084 FixedArray::kHeaderSize - kPointerSize));
6085 __ bind(&done); 6085 __ bind(&done);
6086 } 6086 }
6087 6087
6088 6088
6089 #undef __ 6089 #undef __
6090 6090
6091 } } // namespace v8::internal 6091 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698