Revision f230a1cf deps/v8/src/serialize.h

View differences:

deps/v8/src/serialize.h
339 339
 private:
340 340
  virtual void VisitPointers(Object** start, Object** end);
341 341

  
342
  virtual void VisitExternalReferences(Address* start, Address* end) {
343
    UNREACHABLE();
344
  }
345

  
346 342
  virtual void VisitRuntimeEntry(RelocInfo* rinfo) {
347 343
    UNREACHABLE();
348 344
  }
......
366 362
  Address Allocate(int space_index, int size) {
367 363
    Address address = high_water_[space_index];
368 364
    high_water_[space_index] = address + size;
365
    HeapProfiler* profiler = isolate_->heap_profiler();
366
    if (profiler->is_tracking_allocations()) {
367
      profiler->NewObjectEvent(address, size);
368
    }
369 369
    return address;
370 370
  }
371 371

  
......
517 517
    void Serialize();
518 518
    void VisitPointers(Object** start, Object** end);
519 519
    void VisitEmbeddedPointer(RelocInfo* target);
520
    void VisitExternalReferences(Address* start, Address* end);
520
    void VisitExternalReference(Address* p);
521 521
    void VisitExternalReference(RelocInfo* rinfo);
522 522
    void VisitCodeTarget(RelocInfo* target);
523 523
    void VisitCodeEntry(Address entry_address);
......
569 569

  
570 570
  int SpaceAreaSize(int space);
571 571

  
572
  // Some roots should not be serialized, because their actual value depends on
573
  // absolute addresses and they are reset after deserialization, anyway.
574
  bool ShouldBeSkipped(Object** current);
575

  
572 576
  Isolate* isolate_;
573 577
  // Keep track of the fullness of each space in order to generate
574 578
  // relative addresses for back references.

Also available in: Unified diff