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

Side by Side Diff: src/isolate.cc

Issue 2476001: Current HandleScope moving to Isolate. (Closed)
Patch Set: removed unnesessary initializing constand, using existing Initialize() for handle scope data. Created 10 years, 6 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/isolate.h ('k') | test/cctest/test-serialize.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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-2010 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 delete global_isolate; 60 delete global_isolate;
61 global_isolate = NULL; 61 global_isolate = NULL;
62 return NULL; 62 return NULL;
63 } 63 }
64 } 64 }
65 65
66 66
67 Isolate::Isolate() 67 Isolate::Isolate()
68 : bootstrapper_(NULL), 68 : bootstrapper_(NULL),
69 stub_cache_(NULL) { 69 stub_cache_(NULL) {
70 handle_scope_data_.Initialize();
70 } 71 }
71 72
72 73
73 Isolate::~Isolate() { 74 Isolate::~Isolate() {
74 delete stub_cache_; 75 delete stub_cache_;
75 stub_cache_ = NULL; 76 stub_cache_ = NULL;
76 delete bootstrapper_; 77 delete bootstrapper_;
77 bootstrapper_ = NULL; 78 bootstrapper_ = NULL;
78 } 79 }
79 80
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 HandleScope scope; 158 HandleScope scope;
158 LOG(LogCodeObjects()); 159 LOG(LogCodeObjects());
159 LOG(LogCompiledFunctions()); 160 LOG(LogCompiledFunctions());
160 } 161 }
161 162
162 return true; 163 return true;
163 } 164 }
164 165
165 166
166 } } // namespace v8::internal 167 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698