Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 #define ISOLATE_INIT_EXECUTE(type, name, initialvalue) \ | |
| 71 name##_ = initialvalue; | |
|
Vitaly Repeshko
2010/06/02 15:30:40
Use "(initial_value)" just in case.
| |
| 72 ISOLATE_INIT_LIST(ISOLATE_INIT_EXECUTE) | |
| 73 #undef ISOLATE_INIT_EXECUTE | |
| 70 } | 74 } |
| 71 | 75 |
| 72 | 76 |
| 73 Isolate::~Isolate() { | 77 Isolate::~Isolate() { |
| 74 delete stub_cache_; | 78 delete stub_cache_; |
| 75 stub_cache_ = NULL; | 79 stub_cache_ = NULL; |
| 76 delete bootstrapper_; | 80 delete bootstrapper_; |
| 77 bootstrapper_ = NULL; | 81 bootstrapper_ = NULL; |
| 78 } | 82 } |
| 79 | 83 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 HandleScope scope; | 161 HandleScope scope; |
| 158 LOG(LogCodeObjects()); | 162 LOG(LogCodeObjects()); |
| 159 LOG(LogCompiledFunctions()); | 163 LOG(LogCompiledFunctions()); |
| 160 } | 164 } |
| 161 | 165 |
| 162 return true; | 166 return true; |
| 163 } | 167 } |
| 164 | 168 |
| 165 | 169 |
| 166 } } // namespace v8::internal | 170 } } // namespace v8::internal |
| OLD | NEW |