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

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: 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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 AllowHeapAllocation doesnt_matter_anymore; 754 AllowHeapAllocation doesnt_matter_anymore;
755 return ScheduleThrow( 755 return ScheduleThrow(
756 *factory()->NewTypeError(MessageTemplate::kNoAccess)); 756 *factory()->NewTypeError(MessageTemplate::kNoAccess));
757 } 757 }
758 data = handle(access_check_info->data(), this); 758 data = handle(access_check_info->data(), this);
759 } 759 }
760 760
761 // Leaving JavaScript. 761 // Leaving JavaScript.
762 VMState<EXTERNAL> state(this); 762 VMState<EXTERNAL> state(this);
763 thread_local_top()->failed_access_check_callback_( 763 thread_local_top()->failed_access_check_callback_(
764 v8::Utils::ToLocal(receiver), v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 764 v8::Utils::ReceiverToLocal(receiver), v8::ACCESS_HAS,
765 v8::Utils::ToLocal(data));
765 } 766 }
766 767
767 768
768 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) { 769 bool Isolate::IsInternallyUsedPropertyName(Handle<Object> name) {
769 if (name->IsSymbol()) { 770 if (name->IsSymbol()) {
770 return Handle<Symbol>::cast(name)->is_private(); 771 return Handle<Symbol>::cast(name)->is_private();
771 } 772 }
772 return name.is_identical_to(factory()->hidden_string()); 773 return name.is_identical_to(factory()->hidden_string());
773 } 774 }
774 775
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 } 828 }
828 } 829 }
829 830
830 LOG(this, ApiSecurityCheck()); 831 LOG(this, ApiSecurityCheck());
831 832
832 { 833 {
833 // Leaving JavaScript. 834 // Leaving JavaScript.
834 VMState<EXTERNAL> state(this); 835 VMState<EXTERNAL> state(this);
835 if (callback) { 836 if (callback) {
836 return callback(v8::Utils::ToLocal(accessing_context), 837 return callback(v8::Utils::ToLocal(accessing_context),
837 v8::Utils::ToLocal(receiver)); 838 v8::Utils::ReceiverToLocal(receiver));
838 } 839 }
839 Handle<Object> key = factory()->undefined_value(); 840 Handle<Object> key = factory()->undefined_value();
840 return named_callback(v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(key), 841 return named_callback(v8::Utils::ReceiverToLocal(receiver),
841 v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 842 v8::Utils::ToLocal(key), v8::ACCESS_HAS,
843 v8::Utils::ToLocal(data));
842 } 844 }
843 } 845 }
844 846
845 847
846 const char* const Isolate::kStackOverflowMessage = 848 const char* const Isolate::kStackOverflowMessage =
847 "Uncaught RangeError: Maximum call stack size exceeded"; 849 "Uncaught RangeError: Maximum call stack size exceeded";
848 850
849 851
850 Object* Isolate::StackOverflow() { 852 Object* Isolate::StackOverflow() {
851 HandleScope scope(this); 853 HandleScope scope(this);
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2850 // Then check whether this scope intercepts. 2852 // Then check whether this scope intercepts.
2851 if ((flag & intercept_mask_)) { 2853 if ((flag & intercept_mask_)) {
2852 intercepted_flags_ |= flag; 2854 intercepted_flags_ |= flag;
2853 return true; 2855 return true;
2854 } 2856 }
2855 return false; 2857 return false;
2856 } 2858 }
2857 2859
2858 } // namespace internal 2860 } // namespace internal
2859 } // namespace v8 2861 } // 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