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

Side by Side Diff: src/heap.h

Issue 228923002: Allow the embedder to pass the virtual memory limit to v8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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 | Annotate | Revision Log
« include/v8.h ('K') | « src/d8.cc ('k') | 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE 565 INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE
566 }; 566 };
567 567
568 568
569 class Heap { 569 class Heap {
570 public: 570 public:
571 // Configure heap size before setup. Return false if the heap has been 571 // Configure heap size before setup. Return false if the heap has been
572 // set up already. 572 // set up already.
573 bool ConfigureHeap(int max_semispace_size, 573 bool ConfigureHeap(int max_semispace_size,
574 intptr_t max_old_gen_size, 574 intptr_t max_old_gen_size,
575 intptr_t max_executable_size); 575 intptr_t max_executable_size,
576 intptr_t code_range_size);
576 bool ConfigureHeapDefault(); 577 bool ConfigureHeapDefault();
577 578
578 // Prepares the heap, setting up memory areas that are needed in the isolate 579 // Prepares the heap, setting up memory areas that are needed in the isolate
579 // without actually creating any objects. 580 // without actually creating any objects.
580 bool SetUp(); 581 bool SetUp();
581 582
582 // Bootstraps the object heap with the core set of objects required to run. 583 // Bootstraps the object heap with the core set of objects required to run.
583 // Returns whether it succeeded. 584 // Returns whether it succeeded.
584 bool CreateHeapObjects(); 585 bool CreateHeapObjects();
585 586
(...skipping 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after
3063 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3064 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3064 3065
3065 private: 3066 private:
3066 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3067 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3067 }; 3068 };
3068 #endif // DEBUG 3069 #endif // DEBUG
3069 3070
3070 } } // namespace v8::internal 3071 } } // namespace v8::internal
3071 3072
3072 #endif // V8_HEAP_H_ 3073 #endif // V8_HEAP_H_
OLDNEW
« include/v8.h ('K') | « src/d8.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698