| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 6974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6985 } | 6985 } |
| 6986 } | 6986 } |
| 6987 | 6987 |
| 6988 | 6988 |
| 6989 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm, | 6989 void FloatingPointHelper::AllocateHeapNumber(MacroAssembler* masm, |
| 6990 Label* need_gc, | 6990 Label* need_gc, |
| 6991 Register scratch1, | 6991 Register scratch1, |
| 6992 Register scratch2, | 6992 Register scratch2, |
| 6993 Register result) { | 6993 Register result) { |
| 6994 // Allocate heap number in new space. | 6994 // Allocate heap number in new space. |
| 6995 __ AllocateObjectInNewSpace(HeapNumber::kSize, | 6995 __ AllocateInNewSpace(HeapNumber::kSize, |
| 6996 result, | 6996 result, |
| 6997 scratch1, | 6997 scratch1, |
| 6998 scratch2, | 6998 scratch2, |
| 6999 need_gc, | 6999 need_gc, |
| 7000 TAG_OBJECT); | 7000 TAG_OBJECT); |
| 7001 | 7001 |
| 7002 // Set the map. | 7002 // Set the map. |
| 7003 __ mov(FieldOperand(result, HeapObject::kMapOffset), | 7003 __ mov(FieldOperand(result, HeapObject::kMapOffset), |
| 7004 Immediate(Factory::heap_number_map())); | 7004 Immediate(Factory::heap_number_map())); |
| 7005 } | 7005 } |
| 7006 | 7006 |
| 7007 | 7007 |
| 7008 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm, | 7008 void FloatingPointHelper::LoadFloatOperand(MacroAssembler* masm, |
| 7009 Register number) { | 7009 Register number) { |
| 7010 Label load_smi, done; | 7010 Label load_smi, done; |
| (...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7979 | 7979 |
| 7980 int CompareStub::MinorKey() { | 7980 int CompareStub::MinorKey() { |
| 7981 // Encode the two parameters in a unique 16 bit value. | 7981 // Encode the two parameters in a unique 16 bit value. |
| 7982 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 7982 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
| 7983 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 7983 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
| 7984 } | 7984 } |
| 7985 | 7985 |
| 7986 #undef __ | 7986 #undef __ |
| 7987 | 7987 |
| 7988 } } // namespace v8::internal | 7988 } } // namespace v8::internal |
| OLD | NEW |