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

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

Issue 2097023002: Reland [heap] Avoid the use of cells to point from code to new-space objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase. Created 4 years, 5 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
« no previous file with comments | « src/objects-debug.cc ('k') | src/x64/assembler-x64-inl.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 2447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 2458
2459 Object* ArrayList::Get(int index) { 2459 Object* ArrayList::Get(int index) {
2460 return FixedArray::cast(this)->get(kFirstIndex + index); 2460 return FixedArray::cast(this)->get(kFirstIndex + index);
2461 } 2461 }
2462 2462
2463 2463
2464 Object** ArrayList::Slot(int index) { 2464 Object** ArrayList::Slot(int index) {
2465 return data_start() + kFirstIndex + index; 2465 return data_start() + kFirstIndex + index;
2466 } 2466 }
2467 2467
2468 2468 void ArrayList::Set(int index, Object* obj, WriteBarrierMode mode) {
2469 void ArrayList::Set(int index, Object* obj) { 2469 FixedArray::cast(this)->set(kFirstIndex + index, obj, mode);
2470 FixedArray::cast(this)->set(kFirstIndex + index, obj);
2471 } 2470 }
2472 2471
2473 2472
2474 void ArrayList::Clear(int index, Object* undefined) { 2473 void ArrayList::Clear(int index, Object* undefined) {
2475 DCHECK(undefined->IsUndefined(GetIsolate())); 2474 DCHECK(undefined->IsUndefined(GetIsolate()));
2476 FixedArray::cast(this) 2475 FixedArray::cast(this)
2477 ->set(kFirstIndex + index, undefined, SKIP_WRITE_BARRIER); 2476 ->set(kFirstIndex + index, undefined, SKIP_WRITE_BARRIER);
2478 } 2477 }
2479 2478
2480 2479
(...skipping 5513 matching lines...) Expand 10 before | Expand all | Expand 10 after
7994 #undef WRITE_INT64_FIELD 7993 #undef WRITE_INT64_FIELD
7995 #undef READ_BYTE_FIELD 7994 #undef READ_BYTE_FIELD
7996 #undef WRITE_BYTE_FIELD 7995 #undef WRITE_BYTE_FIELD
7997 #undef NOBARRIER_READ_BYTE_FIELD 7996 #undef NOBARRIER_READ_BYTE_FIELD
7998 #undef NOBARRIER_WRITE_BYTE_FIELD 7997 #undef NOBARRIER_WRITE_BYTE_FIELD
7999 7998
8000 } // namespace internal 7999 } // namespace internal
8001 } // namespace v8 8000 } // namespace v8
8002 8001
8003 #endif // V8_OBJECTS_INL_H_ 8002 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698