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

Side by Side Diff: test/cctest/cctest.h

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 8 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/zone.cc ('k') | test/cctest/compiler/function-tester.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 i::Isolate* main_isolate() { return main_isolate_; } 578 i::Isolate* main_isolate() { return main_isolate_; }
579 579
580 private: 580 private:
581 i::Isolate* main_isolate_; 581 i::Isolate* main_isolate_;
582 i::HandleScope handle_scope_; 582 i::HandleScope handle_scope_;
583 }; 583 };
584 584
585 585
586 class HandleAndZoneScope : public InitializedHandleScope { 586 class HandleAndZoneScope : public InitializedHandleScope {
587 public: 587 public:
588 HandleAndZoneScope() {} 588 HandleAndZoneScope() : main_zone_(&allocator_) {}
589 589
590 // Prefixing the below with main_ reduces a lot of naming clashes. 590 // Prefixing the below with main_ reduces a lot of naming clashes.
591 i::Zone* main_zone() { return &main_zone_; } 591 i::Zone* main_zone() { return &main_zone_; }
592 592
593 private: 593 private:
594 v8::base::AccountingAllocator allocator_;
594 i::Zone main_zone_; 595 i::Zone main_zone_;
595 }; 596 };
596 597
597 #endif // ifndef CCTEST_H_ 598 #endif // ifndef CCTEST_H_
OLDNEW
« no previous file with comments | « src/zone.cc ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698