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

Side by Side Diff: Source/bindings/v8/V8Binding.cpp

Issue 135843008: Remove V8HiddenPropertyName (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 { 642 {
643 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 643 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
644 if (data->workerDOMDataStore()) 644 if (data->workerDOMDataStore())
645 return 0; 645 return 0;
646 if (!DOMWrapperWorld::isolatedWorldsExist()) 646 if (!DOMWrapperWorld::isolatedWorldsExist())
647 return 0; 647 return 0;
648 ASSERT(isolate->InContext()); 648 ASSERT(isolate->InContext());
649 return DOMWrapperWorld::isolatedWorld(isolate->GetCurrentContext()); 649 return DOMWrapperWorld::isolatedWorld(isolate->GetCurrentContext());
650 } 650 }
651 651
652 v8::Local<v8::Value> getHiddenValue(v8::Handle<v8::Object> object, v8::Handle<v8 ::String> key)
653 {
654 return object->GetHiddenValue(key);
655 }
656
657 bool setHiddenValue(v8::Handle<v8::Object> object, v8::Handle<v8::String> key, v 8::Handle<v8::Value> value)
658 {
659 return object->SetHiddenValue(key, value);
660 }
661
662 bool deleteHiddenValue(v8::Handle<v8::Object> object, v8::Handle<v8::String> key )
663 {
664 return object->DeleteHiddenValue(key);
665 }
666
652 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc riptWrappable* wrappable, v8::Handle<v8::String> key) 667 v8::Local<v8::Value> getHiddenValueFromMainWorldWrapper(v8::Isolate* isolate, Sc riptWrappable* wrappable, v8::Handle<v8::String> key)
653 { 668 {
654 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate); 669 v8::Local<v8::Object> wrapper = wrappable->newLocalWrapper(isolate);
655 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : wrapper->GetHiddenValue( key); 670 return wrapper.IsEmpty() ? v8::Local<v8::Value>() : getHiddenValue(wrapper, key);
656 } 671 }
657 672
658 static gin::IsolateHolder* mainIsolateHolder = 0; 673 static gin::IsolateHolder* mainIsolateHolder = 0;
659 674
660 v8::Isolate* mainThreadIsolate() 675 v8::Isolate* mainThreadIsolate()
661 { 676 {
662 ASSERT(mainIsolateHolder); 677 ASSERT(mainIsolateHolder);
663 ASSERT(isMainThread()); 678 ASSERT(isMainThread());
664 return mainIsolateHolder->isolate(); 679 return mainIsolateHolder->isolate();
665 } 680 }
(...skipping 16 matching lines...) Expand all
682 return mainThreadIsolate(); 697 return mainThreadIsolate();
683 return v8::Isolate::GetCurrent(); 698 return v8::Isolate::GetCurrent();
684 } 699 }
685 700
686 v8::Isolate* toIsolate(Frame* frame) 701 v8::Isolate* toIsolate(Frame* frame)
687 { 702 {
688 return frame->script().isolate(); 703 return frame->script().isolate();
689 } 704 }
690 705
691 } // namespace WebCore 706 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698