OLD | NEW |
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 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3797 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } | 3797 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } |
3798 | 3798 |
3799 private: | 3799 private: |
3800 int max_young_space_size_; | 3800 int max_young_space_size_; |
3801 int max_old_space_size_; | 3801 int max_old_space_size_; |
3802 int max_executable_size_; | 3802 int max_executable_size_; |
3803 uint32_t* stack_limit_; | 3803 uint32_t* stack_limit_; |
3804 }; | 3804 }; |
3805 | 3805 |
3806 | 3806 |
3807 /** | |
3808 * Sets the given ResourceConstraints on the current isolate. | |
3809 */ | |
3810 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); | 3807 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); |
3811 | 3808 |
3812 | 3809 |
3813 // --- Exceptions --- | 3810 // --- Exceptions --- |
3814 | 3811 |
3815 | 3812 |
3816 typedef void (*FatalErrorCallback)(const char* location, const char* message); | 3813 typedef void (*FatalErrorCallback)(const char* location, const char* message); |
3817 | 3814 |
3818 | 3815 |
3819 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); | 3816 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); |
(...skipping 2681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6501 */ | 6498 */ |
6502 | 6499 |
6503 | 6500 |
6504 } // namespace v8 | 6501 } // namespace v8 |
6505 | 6502 |
6506 | 6503 |
6507 #undef TYPE_CHECK | 6504 #undef TYPE_CHECK |
6508 | 6505 |
6509 | 6506 |
6510 #endif // V8_H_ | 6507 #endif // V8_H_ |
OLD | NEW |