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

Side by Side Diff: include/v8.h

Issue 24269003: Add methods to enable configuration of ResourceConstraints based on limits derived at runtime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: /s/uintptr_t/uint64_t Created 7 years, 2 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 | include/v8-defaults.h » ('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 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after
3755 3755
3756 private: 3756 private:
3757 int max_young_space_size_; 3757 int max_young_space_size_;
3758 int max_old_space_size_; 3758 int max_old_space_size_;
3759 int max_executable_size_; 3759 int max_executable_size_;
3760 uint32_t* stack_limit_; 3760 uint32_t* stack_limit_;
3761 Maybe<bool> is_memory_constrained_; 3761 Maybe<bool> is_memory_constrained_;
3762 }; 3762 };
3763 3763
3764 3764
3765 /**
3766 * Sets the given ResourceConstraints on the current isolate.
3767 */
3765 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); 3768 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints);
3766 3769
3767 3770
3768 // --- Exceptions --- 3771 // --- Exceptions ---
3769 3772
3770 3773
3771 typedef void (*FatalErrorCallback)(const char* location, const char* message); 3774 typedef void (*FatalErrorCallback)(const char* location, const char* message);
3772 3775
3773 3776
3774 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); 3777 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error);
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 */ 6458 */
6456 6459
6457 6460
6458 } // namespace v8 6461 } // namespace v8
6459 6462
6460 6463
6461 #undef TYPE_CHECK 6464 #undef TYPE_CHECK
6462 6465
6463 6466
6464 #endif // V8_H_ 6467 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | include/v8-defaults.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698