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

Side by Side Diff: src/objects.cc

Issue 640303006: Weak Cells (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip cleared weak cells Created 6 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
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 break; 1617 break;
1618 case CODE_TYPE: 1618 case CODE_TYPE:
1619 reinterpret_cast<Code*>(this)->CodeIterateBody(v); 1619 reinterpret_cast<Code*>(this)->CodeIterateBody(v);
1620 break; 1620 break;
1621 case CELL_TYPE: 1621 case CELL_TYPE:
1622 Cell::BodyDescriptor::IterateBody(this, v); 1622 Cell::BodyDescriptor::IterateBody(this, v);
1623 break; 1623 break;
1624 case PROPERTY_CELL_TYPE: 1624 case PROPERTY_CELL_TYPE:
1625 PropertyCell::BodyDescriptor::IterateBody(this, v); 1625 PropertyCell::BodyDescriptor::IterateBody(this, v);
1626 break; 1626 break;
1627 case WEAK_CELL_TYPE:
1628 WeakCell::BodyDescriptor::IterateBody(this, v);
1629 break;
1627 case SYMBOL_TYPE: 1630 case SYMBOL_TYPE:
1628 Symbol::BodyDescriptor::IterateBody(this, v); 1631 Symbol::BodyDescriptor::IterateBody(this, v);
1629 break; 1632 break;
1630 1633
1631 case HEAP_NUMBER_TYPE: 1634 case HEAP_NUMBER_TYPE:
1632 case MUTABLE_HEAP_NUMBER_TYPE: 1635 case MUTABLE_HEAP_NUMBER_TYPE:
1633 case FILLER_TYPE: 1636 case FILLER_TYPE:
1634 case BYTE_ARRAY_TYPE: 1637 case BYTE_ARRAY_TYPE:
1635 case FREE_SPACE_TYPE: 1638 case FREE_SPACE_TYPE:
1636 break; 1639 break;
(...skipping 14756 matching lines...) Expand 10 before | Expand all | Expand 10 after
16393 Handle<DependentCode> codes = 16396 Handle<DependentCode> codes =
16394 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16397 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16395 DependentCode::kPropertyCellChangedGroup, 16398 DependentCode::kPropertyCellChangedGroup,
16396 info->object_wrapper()); 16399 info->object_wrapper());
16397 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16400 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16398 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16401 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16399 cell, info->zone()); 16402 cell, info->zone());
16400 } 16403 }
16401 16404
16402 } } // namespace v8::internal 16405 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698