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

Side by Side Diff: include/v8.h

Issue 38993005: Add isolate parameter to SetResourceConstraints, and deprecate version which depends on current iso… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update comment too. Created 7 years, 1 month 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/api.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 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after
3781 void set_stack_limit(uint32_t* value) { stack_limit_ = value; } 3781 void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
3782 3782
3783 private: 3783 private:
3784 int max_young_space_size_; 3784 int max_young_space_size_;
3785 int max_old_space_size_; 3785 int max_old_space_size_;
3786 int max_executable_size_; 3786 int max_executable_size_;
3787 uint32_t* stack_limit_; 3787 uint32_t* stack_limit_;
3788 }; 3788 };
3789 3789
3790 3790
3791 V8_DEPRECATED(
3792 "Use SetResourceConstraints(isolate, constraints) instead",
3793 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints));
3794
3795
3791 /** 3796 /**
3792 * Sets the given ResourceConstraints on the current isolate. 3797 * Sets the given ResourceConstraints on the given Isolate.
3793 */ 3798 */
3794 bool V8_EXPORT SetResourceConstraints(ResourceConstraints* constraints); 3799 bool V8_EXPORT SetResourceConstraints(Isolate* isolate,
3800 ResourceConstraints* constraints);
3795 3801
3796 3802
3797 // --- Exceptions --- 3803 // --- Exceptions ---
3798 3804
3799 3805
3800 typedef void (*FatalErrorCallback)(const char* location, const char* message); 3806 typedef void (*FatalErrorCallback)(const char* location, const char* message);
3801 3807
3802 3808
3803 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); 3809 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error);
3804 3810
(...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after
6499 */ 6505 */
6500 6506
6501 6507
6502 } // namespace v8 6508 } // namespace v8
6503 6509
6504 6510
6505 #undef TYPE_CHECK 6511 #undef TYPE_CHECK
6506 6512
6507 6513
6508 #endif // V8_H_ 6514 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698