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

Side by Side Diff: src/isolate.cc

Issue 1413463006: Map v8::Object to v8::internal::JSReceiver (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 AllowHeapAllocation doesnt_matter_anymore; 753 AllowHeapAllocation doesnt_matter_anymore;
754 return ScheduleThrow( 754 return ScheduleThrow(
755 *factory()->NewTypeError(MessageTemplate::kNoAccess)); 755 *factory()->NewTypeError(MessageTemplate::kNoAccess));
756 } 756 }
757 data = handle(access_check_info->data(), this); 757 data = handle(access_check_info->data(), this);
758 } 758 }
759 759
760 // Leaving JavaScript. 760 // Leaving JavaScript.
761 VMState<EXTERNAL> state(this); 761 VMState<EXTERNAL> state(this);
762 thread_local_top()->failed_access_check_callback_( 762 thread_local_top()->failed_access_check_callback_(
763 v8::Utils::ToLocal(receiver), v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 763 v8::Utils::ReceiverToLocal(receiver), v8::ACCESS_HAS,
764 v8::Utils::ToLocal(data));
764 } 765 }
765 766
766 767
767 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) { 768 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) {
768 if (name->IsSymbol()) { 769 if (name->IsSymbol()) {
769 return Handle<Symbol>::cast(name)->is_private(); 770 return Handle<Symbol>::cast(name)->is_private();
770 } 771 }
771 return name.is_identical_to(factory()->hidden_string()); 772 return name.is_identical_to(factory()->hidden_string());
772 } 773 }
773 774
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 } 827 }
827 } 828 }
828 829
829 LOG(this, ApiSecurityCheck()); 830 LOG(this, ApiSecurityCheck());
830 831
831 { 832 {
832 // Leaving JavaScript. 833 // Leaving JavaScript.
833 VMState<EXTERNAL> state(this); 834 VMState<EXTERNAL> state(this);
834 if (callback) { 835 if (callback) {
835 return callback(v8::Utils::ToLocal(accessing_context), 836 return callback(v8::Utils::ToLocal(accessing_context),
836 v8::Utils::ToLocal(receiver)); 837 v8::Utils::ReceiverToLocal(receiver));
837 } 838 }
838 Handle<Object> key = factory()->undefined_value(); 839 Handle<Object> key = factory()->undefined_value();
839 return named_callback(v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(key), 840 return named_callback(v8::Utils::ReceiverToLocal(receiver),
840 v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 841 v8::Utils::ToLocal(key), v8::ACCESS_HAS,
842 v8::Utils::ToLocal(data));
841 } 843 }
842 } 844 }
843 845
844 846
845 const char* const Isolate::kStackOverflowMessage = 847 const char* const Isolate::kStackOverflowMessage =
846 "Uncaught RangeError: Maximum call stack size exceeded"; 848 "Uncaught RangeError: Maximum call stack size exceeded";
847 849
848 850
849 Object* Isolate::StackOverflow() { 851 Object* Isolate::StackOverflow() {
850 HandleScope scope(this); 852 HandleScope scope(this);
(...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 // Then check whether this scope intercepts. 2853 // Then check whether this scope intercepts.
2852 if ((flag & intercept_mask_)) { 2854 if ((flag & intercept_mask_)) {
2853 intercepted_flags_ |= flag; 2855 intercepted_flags_ |= flag;
2854 return true; 2856 return true;
2855 } 2857 }
2856 return false; 2858 return false;
2857 } 2859 }
2858 2860
2859 } // namespace internal 2861 } // namespace internal
2860 } // namespace v8 2862 } // namespace v8
OLDNEW
« src/api.cc ('K') | « src/debug/debug.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698