| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 // Iterate pointers in live lookup results. | 502 // Iterate pointers in live lookup results. |
| 503 thread->top_lookup_result_->Iterate(v); | 503 thread->top_lookup_result_->Iterate(v); |
| 504 } | 504 } |
| 505 | 505 |
| 506 | 506 |
| 507 void Isolate::Iterate(ObjectVisitor* v) { | 507 void Isolate::Iterate(ObjectVisitor* v) { |
| 508 ThreadLocalTop* current_t = thread_local_top(); | 508 ThreadLocalTop* current_t = thread_local_top(); |
| 509 Iterate(v, current_t); | 509 Iterate(v, current_t); |
| 510 } | 510 } |
| 511 | 511 |
| 512 |
| 512 void Isolate::IterateDeferredHandles(ObjectVisitor* visitor) { | 513 void Isolate::IterateDeferredHandles(ObjectVisitor* visitor) { |
| 513 for (DeferredHandles* deferred = deferred_handles_head_; | 514 for (DeferredHandles* deferred = deferred_handles_head_; |
| 514 deferred != NULL; | 515 deferred != NULL; |
| 515 deferred = deferred->next_) { | 516 deferred = deferred->next_) { |
| 516 deferred->Iterate(visitor); | 517 deferred->Iterate(visitor); |
| 517 } | 518 } |
| 518 } | 519 } |
| 519 | 520 |
| 520 | 521 |
| 521 #ifdef DEBUG | 522 #ifdef DEBUG |
| (...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2503 | 2504 |
| 2504 #ifdef DEBUG | 2505 #ifdef DEBUG |
| 2505 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2506 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2506 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2507 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2507 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2508 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2508 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2509 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2509 #undef ISOLATE_FIELD_OFFSET | 2510 #undef ISOLATE_FIELD_OFFSET |
| 2510 #endif | 2511 #endif |
| 2511 | 2512 |
| 2512 } } // namespace v8::internal | 2513 } } // namespace v8::internal |
| OLD | NEW |