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

Unified Diff: src/api.h

Issue 10696125: Fix bug in compilation-handlescope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.h
diff --git a/src/api.h b/src/api.h
index cd6c3da078af24b0a83bf640e950ca33c60ec884..2341c4c8fc59d809e708e04337ccdb97c2401152 100644
--- a/src/api.h
+++ b/src/api.h
@@ -397,9 +397,9 @@ class DeferredHandles {
~DeferredHandles();
private:
- DeferredHandles(DeferredHandles* next, Object** last_block_limit,
+ DeferredHandles(DeferredHandles* next, Object** first_block_limit,
HandleScopeImplementer* impl)
- : next_(next), previous_(NULL), last_block_limit_(last_block_limit),
+ : next_(next), previous_(NULL), first_block_limit_(first_block_limit),
impl_(impl) {}
void Iterate(ObjectVisitor* v);
@@ -407,7 +407,7 @@ class DeferredHandles {
List<Object**> blocks_;
DeferredHandles* next_;
DeferredHandles* previous_;
- Object** last_block_limit_;
+ Object** first_block_limit_;
HandleScopeImplementer* impl_;
friend class HandleScopeImplementer;
@@ -477,6 +477,8 @@ class HandleScopeImplementer {
entered_contexts_.Initialize(0);
saved_contexts_.Initialize(0);
spare_ = NULL;
+ deferred_handles_head_ = NULL;
+ last_handle_before_deferred_block_ = NULL;
call_depth_ = 0;
}
@@ -484,6 +486,7 @@ class HandleScopeImplementer {
ASSERT(blocks_.length() == 0);
ASSERT(entered_contexts_.length() == 0);
ASSERT(saved_contexts_.length() == 0);
+ ASSERT(deferred_handles_head_ == NULL);
blocks_.Free();
entered_contexts_.Free();
saved_contexts_.Free();
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698