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

Side by Side Diff: src/heap.h

Issue 565047: * Add the partial context snapshot to the VM executable if... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 Heap::disallow_allocation_failure_ = old_state_; 1470 Heap::disallow_allocation_failure_ = old_state_;
1471 } 1471 }
1472 private: 1472 private:
1473 bool old_state_; 1473 bool old_state_;
1474 }; 1474 };
1475 1475
1476 class AssertNoAllocation { 1476 class AssertNoAllocation {
1477 public: 1477 public:
1478 AssertNoAllocation() { 1478 AssertNoAllocation() {
1479 old_state_ = Heap::allow_allocation(false); 1479 old_state_ = Heap::allow_allocation(false);
1480 //printf("No allocation\n");
1481 } 1480 }
1482 1481
1483 ~AssertNoAllocation() { 1482 ~AssertNoAllocation() {
1484 Heap::allow_allocation(old_state_); 1483 Heap::allow_allocation(old_state_);
1485 //printf("Allocation\n");
1486 } 1484 }
1487 1485
1488 private: 1486 private:
1489 bool old_state_; 1487 bool old_state_;
1490 }; 1488 };
1491 1489
1492 class DisableAssertNoAllocation { 1490 class DisableAssertNoAllocation {
1493 public: 1491 public:
1494 DisableAssertNoAllocation() { 1492 DisableAssertNoAllocation() {
1495 old_state_ = Heap::allow_allocation(true); 1493 old_state_ = Heap::allow_allocation(true);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 1696
1699 // To speed up scavenge collections new space string are kept 1697 // To speed up scavenge collections new space string are kept
1700 // separate from old space strings. 1698 // separate from old space strings.
1701 static List<Object*> new_space_strings_; 1699 static List<Object*> new_space_strings_;
1702 static List<Object*> old_space_strings_; 1700 static List<Object*> old_space_strings_;
1703 }; 1701 };
1704 1702
1705 } } // namespace v8::internal 1703 } } // namespace v8::internal
1706 1704
1707 #endif // V8_HEAP_H_ 1705 #endif // V8_HEAP_H_
OLDNEW
« src/api.cc ('K') | « src/frames.cc ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698