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

Side by Side Diff: src/objects-inl.h

Issue 8258015: Support array literals with FAST_DOUBLE_ELEMENTS ElementsKind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove regressions Created 9 years, 2 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 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
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
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_
OLDNEW
« src/arm/full-codegen-arm.cc ('K') | « src/objects.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698