| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 7329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7340 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm, | 7340 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm, |
| 7341 Label* need_gc, | 7341 Label* need_gc, |
| 7342 Register scratch, | 7342 Register scratch, |
| 7343 Register result) { | 7343 Register result) { |
| 7344 // Allocate heap number in new space. | 7344 // Allocate heap number in new space. |
| 7345 __ AllocateObjectInNewSpace(HeapNumber::kSize, | 7345 __ AllocateObjectInNewSpace(HeapNumber::kSize, |
| 7346 result, | 7346 result, |
| 7347 scratch, | 7347 scratch, |
| 7348 no_reg, | 7348 no_reg, |
| 7349 need_gc, | 7349 need_gc, |
| 7350 false); | 7350 TAG_OBJECT); |
| 7351 | 7351 |
| 7352 // Set the map and tag the result. | 7352 // Set the map and tag the result. |
| 7353 __ addq(result, Immediate(kHeapObjectTag)); | |
| 7354 __ LoadRoot(kScratchRegister, Heap::kHeapNumberMapRootIndex); | 7353 __ LoadRoot(kScratchRegister, Heap::kHeapNumberMapRootIndex); |
| 7355 __ movq(FieldOperand(result, HeapObject::kMapOffset), kScratchRegister); | 7354 __ movq(FieldOperand(result, HeapObject::kMapOffset), kScratchRegister); |
| 7356 } | 7355 } |
| 7357 | 7356 |
| 7358 | 7357 |
| 7359 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm, | 7358 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm, |
| 7360 Register number) { | 7359 Register number) { |
| 7361 Label load_smi, done; | 7360 Label load_smi, done; |
| 7362 | 7361 |
| 7363 __ testl(number, Immediate(kSmiTagMask)); | 7362 __ testl(number, Immediate(kSmiTagMask)); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7905 int CompareStub::MinorKey() { | 7904 int CompareStub::MinorKey() { |
| 7906 // Encode the two parameters in a unique 16 bit value. | 7905 // Encode the two parameters in a unique 16 bit value. |
| 7907 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 7906 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
| 7908 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 7907 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
| 7909 } | 7908 } |
| 7910 | 7909 |
| 7911 | 7910 |
| 7912 #undef __ | 7911 #undef __ |
| 7913 | 7912 |
| 7914 } } // namespace v8::internal | 7913 } } // namespace v8::internal |
| OLD | NEW |