OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4561 return this; | 4561 return this; |
4562 } | 4562 } |
4563 | 4563 |
4564 | 4564 |
4565 MaybeObject* FixedArray::Copy() { | 4565 MaybeObject* FixedArray::Copy() { |
4566 if (length() == 0) return this; | 4566 if (length() == 0) return this; |
4567 return GetHeap()->CopyFixedArray(this); | 4567 return GetHeap()->CopyFixedArray(this); |
4568 } | 4568 } |
4569 | 4569 |
4570 | 4570 |
| 4571 MaybeObject* FixedDoubleArray::Copy() { |
| 4572 if (length() == 0) return this; |
| 4573 return GetHeap()->CopyFixedDoubleArray(this); |
| 4574 } |
| 4575 |
| 4576 |
4571 Relocatable::Relocatable(Isolate* isolate) { | 4577 Relocatable::Relocatable(Isolate* isolate) { |
4572 ASSERT(isolate == Isolate::Current()); | 4578 ASSERT(isolate == Isolate::Current()); |
4573 isolate_ = isolate; | 4579 isolate_ = isolate; |
4574 prev_ = isolate->relocatable_top(); | 4580 prev_ = isolate->relocatable_top(); |
4575 isolate->set_relocatable_top(this); | 4581 isolate->set_relocatable_top(this); |
4576 } | 4582 } |
4577 | 4583 |
4578 | 4584 |
4579 Relocatable::~Relocatable() { | 4585 Relocatable::~Relocatable() { |
4580 ASSERT(isolate_ == Isolate::Current()); | 4586 ASSERT(isolate_ == Isolate::Current()); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4668 #undef WRITE_INT_FIELD | 4674 #undef WRITE_INT_FIELD |
4669 #undef READ_SHORT_FIELD | 4675 #undef READ_SHORT_FIELD |
4670 #undef WRITE_SHORT_FIELD | 4676 #undef WRITE_SHORT_FIELD |
4671 #undef READ_BYTE_FIELD | 4677 #undef READ_BYTE_FIELD |
4672 #undef WRITE_BYTE_FIELD | 4678 #undef WRITE_BYTE_FIELD |
4673 | 4679 |
4674 | 4680 |
4675 } } // namespace v8::internal | 4681 } } // namespace v8::internal |
4676 | 4682 |
4677 #endif // V8_OBJECTS_INL_H_ | 4683 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |