| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 292 |
| 293 | 293 |
| 294 static inline bool EmptyCheck(const char* location, const v8::Data* obj) { | 294 static inline bool EmptyCheck(const char* location, const v8::Data* obj) { |
| 295 return (obj == 0) ? ReportEmptyHandle(location) : false; | 295 return (obj == 0) ? ReportEmptyHandle(location) : false; |
| 296 } | 296 } |
| 297 | 297 |
| 298 // --- S t a t i c s --- | 298 // --- S t a t i c s --- |
| 299 | 299 |
| 300 | 300 |
| 301 static bool InitializeHelper() { | 301 static bool InitializeHelper() { |
| 302 if (i::Snapshot::Initialize()) return true; | 302 // DO NOT SUBMIT if (i::Snapshot::Initialize()) return true; |
| 303 return i::V8::Initialize(NULL); | 303 return i::V8::Initialize(NULL); |
| 304 } | 304 } |
| 305 | 305 |
| 306 | 306 |
| 307 static inline bool EnsureInitializedForIsolate(i::Isolate* isolate, | 307 static inline bool EnsureInitializedForIsolate(i::Isolate* isolate, |
| 308 const char* location) { | 308 const char* location) { |
| 309 if (IsDeadCheck(isolate, location)) return false; | 309 if (IsDeadCheck(isolate, location)) return false; |
| 310 if (isolate != NULL) { | 310 if (isolate != NULL) { |
| 311 if (isolate->IsInitialized()) return true; | 311 if (isolate->IsInitialized()) return true; |
| 312 } | 312 } |
| (...skipping 7370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7683 | 7683 |
| 7684 v->VisitPointers(blocks_.first(), first_block_limit_); | 7684 v->VisitPointers(blocks_.first(), first_block_limit_); |
| 7685 | 7685 |
| 7686 for (int i = 1; i < blocks_.length(); i++) { | 7686 for (int i = 1; i < blocks_.length(); i++) { |
| 7687 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 7687 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
| 7688 } | 7688 } |
| 7689 } | 7689 } |
| 7690 | 7690 |
| 7691 | 7691 |
| 7692 } } // namespace v8::internal | 7692 } } // namespace v8::internal |
| OLD | NEW |