Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: src/heap/heap.h

Issue 2433273002: [wasm] Avoid double-serializing the wire bytes (Closed)
Patch Set: removed unrelated changes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 // another filler object is created so the over allocated memory is iterable. 1435 // another filler object is created so the over allocated memory is iterable.
1436 MUST_USE_RESULT HeapObject* AlignWithFiller(HeapObject* object, 1436 MUST_USE_RESULT HeapObject* AlignWithFiller(HeapObject* object,
1437 int object_size, 1437 int object_size,
1438 int allocation_size, 1438 int allocation_size,
1439 AllocationAlignment alignment); 1439 AllocationAlignment alignment);
1440 1440
1441 // =========================================================================== 1441 // ===========================================================================
1442 // ArrayBuffer tracking. ===================================================== 1442 // ArrayBuffer tracking. =====================================================
1443 // =========================================================================== 1443 // ===========================================================================
1444 1444
1445 // TODO(gc): API usability: encapsulate mutation of JSArrayBuffer::is_external
1446 // in the registration/unregistration APIs. Consider dropping the "New" from
1447 // "RegisterNewArrayBuffer" because one can re-register a previously
1448 // unregistered buffer, too, and the name is confusing.
1445 void RegisterNewArrayBuffer(JSArrayBuffer* buffer); 1449 void RegisterNewArrayBuffer(JSArrayBuffer* buffer);
1446 void UnregisterArrayBuffer(JSArrayBuffer* buffer); 1450 void UnregisterArrayBuffer(JSArrayBuffer* buffer);
1447 1451
1448 // =========================================================================== 1452 // ===========================================================================
1449 // Allocation site tracking. ================================================= 1453 // Allocation site tracking. =================================================
1450 // =========================================================================== 1454 // ===========================================================================
1451 1455
1452 // Updates the AllocationSite of a given {object}. If the global prenuring 1456 // Updates the AllocationSite of a given {object}. If the global prenuring
1453 // storage is passed as {pretenuring_feedback} the memento found count on 1457 // storage is passed as {pretenuring_feedback} the memento found count on
1454 // the corresponding allocation site is immediately updated and an entry 1458 // the corresponding allocation site is immediately updated and an entry
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 } 2644 }
2641 2645
2642 private: 2646 private:
2643 Heap* heap_; 2647 Heap* heap_;
2644 }; 2648 };
2645 2649
2646 } // namespace internal 2650 } // namespace internal
2647 } // namespace v8 2651 } // namespace v8
2648 2652
2649 #endif // V8_HEAP_HEAP_H_ 2653 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698