| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index e04fbef23b4cf03407f49962df816a02ef6fe67f..b80d1be8d2ebb46b1e660fad25c5b71d5793a78c 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -46,7 +46,6 @@
|
| #include "heap-profiler.h"
|
| #include "heap-snapshot-generator-inl.h"
|
| #include "icu_util.h"
|
| -#include "json-parser.h"
|
| #include "messages.h"
|
| #ifdef COMPRESS_STARTUP_DATA_BZ2
|
| #include "natives.h"
|
| @@ -399,7 +398,7 @@ enum CompressedStartupDataItems {
|
| kSnapshotContext,
|
| kLibraries,
|
| kExperimentalLibraries,
|
| -#if defined(V8_I18N_SUPPORT)
|
| +#if defined(ENABLE_I18N_SUPPORT)
|
| kI18NExtension,
|
| #endif
|
| kCompressedStartupDataCount
|
| @@ -443,7 +442,7 @@ void V8::GetCompressedStartupData(StartupData* compressed_data) {
|
| compressed_data[kExperimentalLibraries].raw_size =
|
| i::ExperimentalNatives::GetRawScriptsSize();
|
|
|
| -#if defined(V8_I18N_SUPPORT)
|
| +#if defined(ENABLE_I18N_SUPPORT)
|
| i::Vector<const ii:byte> i18n_extension_source =
|
| i::I18NNatives::GetScriptsSource();
|
| compressed_data[kI18NExtension].data =
|
| @@ -483,7 +482,7 @@ void V8::SetDecompressedStartupData(StartupData* decompressed_data) {
|
| decompressed_data[kExperimentalLibraries].raw_size);
|
| i::ExperimentalNatives::SetRawScriptsSource(exp_libraries_source);
|
|
|
| -#if defined(V8_I18N_SUPPORT)
|
| +#if defined(ENABLE_I18N_SUPPORT)
|
| ASSERT_EQ(i::I18NNatives::GetRawScriptsSize(),
|
| decompressed_data[kI18NExtension].raw_size);
|
| i::Vector<const char> i18n_extension_source(
|
| @@ -676,16 +675,6 @@ void V8::DisposeGlobal(i::Object** obj) {
|
| }
|
|
|
|
|
| -int V8::Eternalize(i::Isolate* isolate, i::Object** handle) {
|
| - return isolate->eternal_handles()->Create(isolate, *handle);
|
| -}
|
| -
|
| -
|
| -i::Object** V8::GetEternal(i::Isolate* isolate, int index) {
|
| - return isolate->eternal_handles()->Get(index).location();
|
| -}
|
| -
|
| -
|
| // --- H a n d l e s ---
|
|
|
|
|
| @@ -2618,29 +2607,6 @@ bool StackFrame::IsConstructor() const {
|
| }
|
|
|
|
|
| -// --- J S O N ---
|
| -
|
| -Local<Object> JSON::Parse(Local<String> json_string) {
|
| - i::Isolate* isolate = i::Isolate::Current();
|
| - EnsureInitializedForIsolate(isolate, "v8::JSON::Parse");
|
| - ENTER_V8(isolate);
|
| - i::HandleScope scope(isolate);
|
| - i::Handle<i::String> source = i::Handle<i::String>(
|
| - FlattenGetString(Utils::OpenHandle(*json_string)));
|
| - EXCEPTION_PREAMBLE(isolate);
|
| - i::Handle<i::Object> result;
|
| - if (source->IsSeqOneByteString()) {
|
| - result = i::JsonParser<true>::Parse(source);
|
| - } else {
|
| - result = i::JsonParser<false>::Parse(source);
|
| - }
|
| - has_pending_exception = result.is_null();
|
| - EXCEPTION_BAILOUT_CHECK(isolate, Local<Object>());
|
| - return Utils::ToLocal(
|
| - i::Handle<i::JSObject>::cast(scope.CloseAndEscape(result)));
|
| -}
|
| -
|
| -
|
| // --- D a t a ---
|
|
|
| bool Value::FullIsUndefined() const {
|
| @@ -7601,18 +7567,6 @@ const CpuProfileNode* CpuProfile::GetSample(int index) const {
|
| }
|
|
|
|
|
| -int64_t CpuProfile::GetStartTime() const {
|
| - const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this);
|
| - return profile->start_time_us();
|
| -}
|
| -
|
| -
|
| -int64_t CpuProfile::GetEndTime() const {
|
| - const i::CpuProfile* profile = reinterpret_cast<const i::CpuProfile*>(this);
|
| - return profile->end_time_us();
|
| -}
|
| -
|
| -
|
| int CpuProfile::GetSamplesCount() const {
|
| return reinterpret_cast<const i::CpuProfile*>(this)->samples_count();
|
| }
|
|
|