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

Unified Diff: Source/bindings/core/v8/V8Binding.cpp

Issue 938553003: [DO NOT COMMIT] [DO NOT REVIEW] XHR timeout layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/V8AbstractEventListener.cpp ('k') | Source/bindings/core/v8/V8EventListener.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8Binding.cpp
diff --git a/Source/bindings/core/v8/V8Binding.cpp b/Source/bindings/core/v8/V8Binding.cpp
index 6eacca6d18be06da4bce891f7bbd6cf6ebb3b497..72cf5a249a656502b90de18a41bc0018c68be2e2 100644
--- a/Source/bindings/core/v8/V8Binding.cpp
+++ b/Source/bindings/core/v8/V8Binding.cpp
@@ -827,8 +827,10 @@ v8::Handle<v8::Function> getBoundFunction(v8::Handle<v8::Function> function)
void addHiddenValueToArray(v8::Isolate* isolate, v8::Handle<v8::Object> object, v8::Local<v8::Value> value, int arrayIndex)
{
+ fprintf(stderr, "%s\n", __PRETTY_FUNCTION__);
v8::Local<v8::Value> arrayValue = object->GetInternalField(arrayIndex);
if (arrayValue->IsNull() || arrayValue->IsUndefined()) {
+ fprintf(stderr, "create new array\n");
arrayValue = v8::Array::New(isolate);
object->SetInternalField(arrayIndex, arrayValue);
}
@@ -854,6 +856,7 @@ void removeHiddenValueFromArray(v8::Isolate* isolate, v8::Handle<v8::Object> obj
void moveEventListenerToNewWrapper(v8::Isolate* isolate, v8::Handle<v8::Object> object, EventListener* oldValue, v8::Local<v8::Value> newValue, int arrayIndex)
{
+ fprintf(stderr, "%s old = %p\n", __PRETTY_FUNCTION__, oldValue ? V8AbstractEventListener::cast(oldValue) : oldValue);
if (oldValue) {
V8AbstractEventListener* oldListener = V8AbstractEventListener::cast(oldValue);
if (oldListener) {
« no previous file with comments | « Source/bindings/core/v8/V8AbstractEventListener.cpp ('k') | Source/bindings/core/v8/V8EventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698