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

Side by Side Diff: src/global-handles.cc

Issue 21466003: IsNearDeath needs to include pending nodes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « include/v8.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 ASSERT(OFFSET_OF(Node, object_) == 0); 64 ASSERT(OFFSET_OF(Node, object_) == 0);
65 return reinterpret_cast<Node*>(location); 65 return reinterpret_cast<Node*>(location);
66 } 66 }
67 67
68 Node() { 68 Node() {
69 ASSERT(OFFSET_OF(Node, class_id_) == Internals::kNodeClassIdOffset); 69 ASSERT(OFFSET_OF(Node, class_id_) == Internals::kNodeClassIdOffset);
70 ASSERT(OFFSET_OF(Node, flags_) == Internals::kNodeFlagsOffset); 70 ASSERT(OFFSET_OF(Node, flags_) == Internals::kNodeFlagsOffset);
71 STATIC_ASSERT(static_cast<int>(NodeState::kMask) == 71 STATIC_ASSERT(static_cast<int>(NodeState::kMask) ==
72 Internals::kNodeStateMask); 72 Internals::kNodeStateMask);
73 STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue); 73 STATIC_ASSERT(WEAK == Internals::kNodeStateIsWeakValue);
74 STATIC_ASSERT(PENDING == Internals::kNodeStateIsPendingValue);
74 STATIC_ASSERT(NEAR_DEATH == Internals::kNodeStateIsNearDeathValue); 75 STATIC_ASSERT(NEAR_DEATH == Internals::kNodeStateIsNearDeathValue);
75 STATIC_ASSERT(static_cast<int>(IsIndependent::kShift) == 76 STATIC_ASSERT(static_cast<int>(IsIndependent::kShift) ==
76 Internals::kNodeIsIndependentShift); 77 Internals::kNodeIsIndependentShift);
77 STATIC_ASSERT(static_cast<int>(IsPartiallyDependent::kShift) == 78 STATIC_ASSERT(static_cast<int>(IsPartiallyDependent::kShift) ==
78 Internals::kNodeIsPartiallyDependentShift); 79 Internals::kNodeIsPartiallyDependentShift);
79 } 80 }
80 81
81 #ifdef ENABLE_EXTRA_CHECKS 82 #ifdef ENABLE_EXTRA_CHECKS
82 ~Node() { 83 ~Node() {
83 // TODO(1428): if it's a weak handle we should have invoked its callback. 84 // TODO(1428): if it's a weak handle we should have invoked its callback.
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } 1013 }
1013 } 1014 }
1014 object_group_connections_.Clear(); 1015 object_group_connections_.Clear();
1015 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity); 1016 object_group_connections_.Initialize(kObjectGroupConnectionsCapacity);
1016 retainer_infos_.Clear(); 1017 retainer_infos_.Clear();
1017 implicit_ref_connections_.Clear(); 1018 implicit_ref_connections_.Clear();
1018 } 1019 }
1019 1020
1020 1021
1021 } } // namespace v8::internal 1022 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698