Update V8 to r7427: Fix ENABLE_LOGGING_AND_PROFILING guards
Partial cherry-pick of
http://code.google.com/p/v8/source/detail?r=8113 pulled into trunk in
http://code.google.com/p/v8/source/detail?r=8130
We can't cherry-pick the entire change because it touches code we
don't yet have. The change to top.cc is taken from the patch for
isolate.cc, to where this code has now moved.
Change-Id: I06a98ff82221a5a9bf64253f7dc5730a2ba603a6
diff --git a/src/api.cc b/src/api.cc
index 0d5e4f0..2bfa598 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -856,6 +856,7 @@
int TypeSwitch::match(v8::Handle<Value> value) {
i::Isolate* isolate = i::Isolate::Current();
LOG_API(isolate, "TypeSwitch::match");
+ USE(isolate);
i::Handle<i::Object> obj = Utils::OpenHandle(*value);
i::Handle<i::TypeSwitchInfo> info = Utils::OpenHandle(this);
i::FixedArray* types = i::FixedArray::cast(info->types());
@@ -3203,6 +3204,7 @@
void Function::SetName(v8::Handle<v8::String> name) {
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
ENTER_V8(isolate);
+ USE(isolate);
i::Handle<i::JSFunction> func = Utils::OpenHandle(this);
func->shared()->set_name(*Utils::OpenHandle(*name));
}