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

Side by Side Diff: src/heap.h

Issue 258733013: Simplify old space allocation strategy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | « no previous file | src/heap.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 } 1542 }
1543 1543
1544 Marking* marking() { 1544 Marking* marking() {
1545 return &marking_; 1545 return &marking_;
1546 } 1546 }
1547 1547
1548 IncrementalMarking* incremental_marking() { 1548 IncrementalMarking* incremental_marking() {
1549 return &incremental_marking_; 1549 return &incremental_marking_;
1550 } 1550 }
1551 1551
1552 bool EnsureSweepersProgressed(int step_size) {
1553 bool sweeping_complete = old_data_space()->EnsureSweeperProgress(step_size);
1554 sweeping_complete &= old_pointer_space()->EnsureSweeperProgress(step_size);
1555 return sweeping_complete;
1556 }
1557
1558 ExternalStringTable* external_string_table() { 1552 ExternalStringTable* external_string_table() {
1559 return &external_string_table_; 1553 return &external_string_table_;
1560 } 1554 }
1561 1555
1562 // Returns the current sweep generation. 1556 // Returns the current sweep generation.
1563 int sweep_generation() { 1557 int sweep_generation() {
1564 return sweep_generation_; 1558 return sweep_generation_;
1565 } 1559 }
1566 1560
1567 inline Isolate* isolate(); 1561 inline Isolate* isolate();
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2889 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2896 2890
2897 private: 2891 private:
2898 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2892 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2899 }; 2893 };
2900 #endif // DEBUG 2894 #endif // DEBUG
2901 2895
2902 } } // namespace v8::internal 2896 } } // namespace v8::internal
2903 2897
2904 #endif // V8_HEAP_H_ 2898 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698