Commit ac1c7136 authored by jochen's avatar jochen Committed by Commit bot

Delete APIs deprecated since last release

BUG=none
R=verwaest@chromium.org
LOG=y

Review URL: https://codereview.chromium.org/1114873002

Cr-Commit-Position: refs/heads/master@{#29720}
parent 3285e3bf
...@@ -1114,11 +1114,6 @@ class V8_EXPORT Script { ...@@ -1114,11 +1114,6 @@ class V8_EXPORT Script {
* Returns the corresponding context-unbound script. * Returns the corresponding context-unbound script.
*/ */
Local<UnboundScript> GetUnboundScript(); Local<UnboundScript> GetUnboundScript();
V8_DEPRECATED("Use GetUnboundScript()->GetId()",
int GetId()) {
return GetUnboundScript()->GetId();
}
}; };
...@@ -4810,12 +4805,6 @@ class V8_EXPORT ResourceConstraints { ...@@ -4810,12 +4805,6 @@ class V8_EXPORT ResourceConstraints {
void ConfigureDefaults(uint64_t physical_memory, void ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit); uint64_t virtual_memory_limit);
// Deprecated, will be removed soon.
V8_DEPRECATED("Use two-args version instead",
void ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit,
uint32_t number_of_processors));
int max_semi_space_size() const { return max_semi_space_size_; } int max_semi_space_size() const { return max_semi_space_size_; }
void set_max_semi_space_size(int value) { max_semi_space_size_ = value; } void set_max_semi_space_size(int value) { max_semi_space_size_ = value; }
int max_old_space_size() const { return max_old_space_size_; } int max_old_space_size() const { return max_old_space_size_; }
...@@ -4825,14 +4814,6 @@ class V8_EXPORT ResourceConstraints { ...@@ -4825,14 +4814,6 @@ class V8_EXPORT ResourceConstraints {
uint32_t* stack_limit() const { return stack_limit_; } uint32_t* stack_limit() const { return stack_limit_; }
// Sets an address beyond which the VM's stack may not grow. // Sets an address beyond which the VM's stack may not grow.
void set_stack_limit(uint32_t* value) { stack_limit_ = value; } void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
V8_DEPRECATED("Unused, will be removed", int max_available_threads() const) {
return max_available_threads_;
}
// Set the number of threads available to V8, assuming at least 1.
V8_DEPRECATED("Unused, will be removed",
void set_max_available_threads(int value)) {
max_available_threads_ = value;
}
size_t code_range_size() const { return code_range_size_; } size_t code_range_size() const { return code_range_size_; }
void set_code_range_size(size_t value) { void set_code_range_size(size_t value) {
code_range_size_ = value; code_range_size_ = value;
...@@ -4843,7 +4824,6 @@ class V8_EXPORT ResourceConstraints { ...@@ -4843,7 +4824,6 @@ class V8_EXPORT ResourceConstraints {
int max_old_space_size_; int max_old_space_size_;
int max_executable_size_; int max_executable_size_;
uint32_t* stack_limit_; uint32_t* stack_limit_;
int max_available_threads_;
size_t code_range_size_; size_t code_range_size_;
}; };
...@@ -5376,8 +5356,6 @@ class V8_EXPORT Isolate { ...@@ -5376,8 +5356,6 @@ class V8_EXPORT Isolate {
*/ */
static Isolate* New(const CreateParams& params); static Isolate* New(const CreateParams& params);
static V8_DEPRECATED("Always pass CreateParams", Isolate* New());
/** /**
* Returns the entered isolate for the current thread or NULL in * Returns the entered isolate for the current thread or NULL in
* case there is no current isolate. * case there is no current isolate.
...@@ -5977,16 +5955,6 @@ class V8_EXPORT V8 { ...@@ -5977,16 +5955,6 @@ class V8_EXPORT V8 {
"Use isolate version", void SetAllowCodeGenerationFromStringsCallback( "Use isolate version", void SetAllowCodeGenerationFromStringsCallback(
AllowCodeGenerationFromStringsCallback that)); AllowCodeGenerationFromStringsCallback that));
/**
* Set allocator to use for ArrayBuffer memory.
* The allocator should be set only once. The allocator should be set
* before any code tha uses ArrayBuffers is executed.
* This allocator is used in all isolates.
*/
static V8_DEPRECATE_SOON(
"Use isolate version",
void SetArrayBufferAllocator(ArrayBuffer::Allocator* allocator));
/** /**
* Check if V8 is dead and therefore unusable. This is the case after * Check if V8 is dead and therefore unusable. This is the case after
* fatal errors such as out-of-memory situations. * fatal errors such as out-of-memory situations.
......
...@@ -480,15 +480,8 @@ ResourceConstraints::ResourceConstraints() ...@@ -480,15 +480,8 @@ ResourceConstraints::ResourceConstraints()
max_old_space_size_(0), max_old_space_size_(0),
max_executable_size_(0), max_executable_size_(0),
stack_limit_(NULL), stack_limit_(NULL),
max_available_threads_(0),
code_range_size_(0) { } code_range_size_(0) { }
void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit,
uint32_t number_of_processors) {
ConfigureDefaults(physical_memory, virtual_memory_limit);
}
void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory, void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit) { uint64_t virtual_memory_limit) {
#if V8_OS_ANDROID #if V8_OS_ANDROID
...@@ -5376,15 +5369,6 @@ void v8::V8::SetReturnAddressLocationResolver( ...@@ -5376,15 +5369,6 @@ void v8::V8::SetReturnAddressLocationResolver(
i::V8::SetReturnAddressLocationResolver(return_address_resolver); i::V8::SetReturnAddressLocationResolver(return_address_resolver);
} }
void v8::V8::SetArrayBufferAllocator(
ArrayBuffer::Allocator* allocator) {
if (!Utils::ApiCheck(i::V8::ArrayBufferAllocator() == NULL,
"v8::V8::SetArrayBufferAllocator",
"ArrayBufferAllocator might only be set once"))
return;
i::V8::SetArrayBufferAllocator(allocator);
}
bool v8::V8::Dispose() { bool v8::V8::Dispose() {
i::V8::TearDown(); i::V8::TearDown();
...@@ -7100,20 +7084,11 @@ Isolate* Isolate::GetCurrent() { ...@@ -7100,20 +7084,11 @@ Isolate* Isolate::GetCurrent() {
} }
Isolate* Isolate::New() {
Isolate::CreateParams create_params;
return New(create_params);
}
Isolate* Isolate::New(const Isolate::CreateParams& params) { Isolate* Isolate::New(const Isolate::CreateParams& params) {
i::Isolate* isolate = new i::Isolate(false); i::Isolate* isolate = new i::Isolate(false);
Isolate* v8_isolate = reinterpret_cast<Isolate*>(isolate); Isolate* v8_isolate = reinterpret_cast<Isolate*>(isolate);
if (params.array_buffer_allocator != NULL) { CHECK(params.array_buffer_allocator != NULL);
isolate->set_array_buffer_allocator(params.array_buffer_allocator); isolate->set_array_buffer_allocator(params.array_buffer_allocator);
} else {
isolate->set_array_buffer_allocator(i::V8::ArrayBufferAllocator());
}
if (params.snapshot_blob != NULL) { if (params.snapshot_blob != NULL) {
isolate->set_snapshot_blob(params.snapshot_blob); isolate->set_snapshot_blob(params.snapshot_blob);
} else { } else {
......
...@@ -35,7 +35,6 @@ V8_DECLARE_ONCE(init_natives_once); ...@@ -35,7 +35,6 @@ V8_DECLARE_ONCE(init_natives_once);
V8_DECLARE_ONCE(init_snapshot_once); V8_DECLARE_ONCE(init_snapshot_once);
#endif #endif
v8::ArrayBuffer::Allocator* V8::array_buffer_allocator_ = NULL;
v8::Platform* V8::platform_ = NULL; v8::Platform* V8::platform_ = NULL;
......
...@@ -69,15 +69,6 @@ class V8 : public AllStatic { ...@@ -69,15 +69,6 @@ class V8 : public AllStatic {
// Support for entry hooking JITed code. // Support for entry hooking JITed code.
static void SetFunctionEntryHook(FunctionEntryHook entry_hook); static void SetFunctionEntryHook(FunctionEntryHook entry_hook);
static v8::ArrayBuffer::Allocator* ArrayBufferAllocator() {
return array_buffer_allocator_;
}
static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) {
CHECK_NULL(array_buffer_allocator_);
array_buffer_allocator_ = allocator;
}
static void InitializePlatform(v8::Platform* platform); static void InitializePlatform(v8::Platform* platform);
static void ShutdownPlatform(); static void ShutdownPlatform();
static v8::Platform* GetCurrentPlatform(); static v8::Platform* GetCurrentPlatform();
...@@ -89,8 +80,6 @@ class V8 : public AllStatic { ...@@ -89,8 +80,6 @@ class V8 : public AllStatic {
static void InitializeOncePerProcessImpl(); static void InitializeOncePerProcessImpl();
static void InitializeOncePerProcess(); static void InitializeOncePerProcess();
// Allocator for external array buffers.
static v8::ArrayBuffer::Allocator* array_buffer_allocator_;
// v8::Platform to use. // v8::Platform to use.
static v8::Platform* platform_; static v8::Platform* platform_;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment