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

Side by Side Diff: src/heap.h

Issue 12317044: Fix bugs in generating and printing of Crankshaft stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 473
474 class Heap { 474 class Heap {
475 public: 475 public:
476 // Configure heap size before setup. Return false if the heap has been 476 // Configure heap size before setup. Return false if the heap has been
477 // set up already. 477 // set up already.
478 bool ConfigureHeap(int max_semispace_size, 478 bool ConfigureHeap(int max_semispace_size,
479 intptr_t max_old_gen_size, 479 intptr_t max_old_gen_size,
480 intptr_t max_executable_size); 480 intptr_t max_executable_size);
481 bool ConfigureHeapDefault(); 481 bool ConfigureHeapDefault();
482 482
483 // Prepares the heap to be initialized, setting up memory areas that are
484 // needed in the isolate without doing the full heap setup.
485 bool Prepare();
486
483 // Initializes the global object heap. If create_heap_objects is true, 487 // Initializes the global object heap. If create_heap_objects is true,
484 // also creates the basic non-mutable objects. 488 // also creates the basic non-mutable objects.
485 // Returns whether it succeeded. 489 // Returns whether it succeeded.
486 bool SetUp(bool create_heap_objects); 490 bool SetUp(bool create_heap_objects);
487 491
488 // Destroys all memory allocated by the heap. 492 // Destroys all memory allocated by the heap.
489 void TearDown(); 493 void TearDown();
490 494
491 // Set the stack limit in the roots_ array. Some architectures generate 495 // Set the stack limit in the roots_ array. Some architectures generate
492 // code that looks here, because it is faster than loading from the static 496 // code that looks here, because it is faster than loading from the static
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2949 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2946 2950
2947 private: 2951 private:
2948 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2952 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2949 }; 2953 };
2950 #endif // DEBUG 2954 #endif // DEBUG
2951 2955
2952 } } // namespace v8::internal 2956 } } // namespace v8::internal
2953 2957
2954 #endif // V8_HEAP_H_ 2958 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698