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

Side by Side Diff: src/isolate.cc

Issue 1653423002: Add the data parameter back to the access check callback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 } 836 }
837 } 837 }
838 838
839 LOG(this, ApiSecurityCheck()); 839 LOG(this, ApiSecurityCheck());
840 840
841 { 841 {
842 // Leaving JavaScript. 842 // Leaving JavaScript.
843 VMState<EXTERNAL> state(this); 843 VMState<EXTERNAL> state(this);
844 if (callback) { 844 if (callback) {
845 return callback(v8::Utils::ToLocal(accessing_context), 845 return callback(v8::Utils::ToLocal(accessing_context),
846 v8::Utils::ToLocal(receiver)); 846 v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(data));
847 } 847 }
848 Handle<Object> key = factory()->undefined_value(); 848 Handle<Object> key = factory()->undefined_value();
849 return named_callback(v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(key), 849 return named_callback(v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(key),
850 v8::ACCESS_HAS, v8::Utils::ToLocal(data)); 850 v8::ACCESS_HAS, v8::Utils::ToLocal(data));
851 } 851 }
852 } 852 }
853 853
854 854
855 const char* const Isolate::kStackOverflowMessage = 855 const char* const Isolate::kStackOverflowMessage =
856 "Uncaught RangeError: Maximum call stack size exceeded"; 856 "Uncaught RangeError: Maximum call stack size exceeded";
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 // Then check whether this scope intercepts. 2859 // Then check whether this scope intercepts.
2860 if ((flag & intercept_mask_)) { 2860 if ((flag & intercept_mask_)) {
2861 intercepted_flags_ |= flag; 2861 intercepted_flags_ |= flag;
2862 return true; 2862 return true;
2863 } 2863 }
2864 return false; 2864 return false;
2865 } 2865 }
2866 2866
2867 } // namespace internal 2867 } // namespace internal
2868 } // namespace v8 2868 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698