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

Side by Side Diff: src/heap.h

Issue 564035: Remove lazy loading of natives files and the natives cache.... (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
« no previous file with comments | « src/handles.cc ('k') | src/ia32/ic-ia32.cc » ('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 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");
1480 } 1481 }
1481 1482
1482 ~AssertNoAllocation() { 1483 ~AssertNoAllocation() {
1483 Heap::allow_allocation(old_state_); 1484 Heap::allow_allocation(old_state_);
1485 //printf("Allocation\n");
1484 } 1486 }
1485 1487
1486 private: 1488 private:
1487 bool old_state_; 1489 bool old_state_;
1488 }; 1490 };
1489 1491
1490 class DisableAssertNoAllocation { 1492 class DisableAssertNoAllocation {
1491 public: 1493 public:
1492 DisableAssertNoAllocation() { 1494 DisableAssertNoAllocation() {
1493 old_state_ = Heap::allow_allocation(true); 1495 old_state_ = Heap::allow_allocation(true);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 1698
1697 // To speed up scavenge collections new space string are kept 1699 // To speed up scavenge collections new space string are kept
1698 // separate from old space strings. 1700 // separate from old space strings.
1699 static List<Object*> new_space_strings_; 1701 static List<Object*> new_space_strings_;
1700 static List<Object*> old_space_strings_; 1702 static List<Object*> old_space_strings_;
1701 }; 1703 };
1702 1704
1703 } } // namespace v8::internal 1705 } } // namespace v8::internal
1704 1706
1705 #endif // V8_HEAP_H_ 1707 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698