| Index: src/bootstrapper.cc
|
| ===================================================================
|
| --- src/bootstrapper.cc (revision 2523)
|
| +++ src/bootstrapper.cc (working copy)
|
| @@ -47,14 +47,10 @@
|
| // generate an index for each native JS file.
|
| class SourceCodeCache BASE_EMBEDDED {
|
| public:
|
| - explicit SourceCodeCache(Script::Type type): type_(type) { }
|
| + explicit SourceCodeCache(Script::Type type): type_(type), cache_(NULL) { }
|
|
|
| void Initialize(bool create_heap_objects) {
|
| - if (create_heap_objects) {
|
| - cache_ = Heap::empty_fixed_array();
|
| - } else {
|
| - cache_ = NULL;
|
| - }
|
| + cache_ = create_heap_objects ? Heap::empty_fixed_array() : NULL;
|
| }
|
|
|
| void Iterate(ObjectVisitor* v) {
|
|
|