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

Side by Side Diff: src/isolate.h

Issue 11802003: Add API for access checks on observed objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/api.cc ('k') | src/isolate.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 724
725 // Returns if the top context may access the given global object. If 725 // Returns if the top context may access the given global object. If
726 // the result is false, the pending exception is guaranteed to be 726 // the result is false, the pending exception is guaranteed to be
727 // set. 727 // set.
728 bool MayNamedAccess(JSObject* receiver, 728 bool MayNamedAccess(JSObject* receiver,
729 Object* key, 729 Object* key,
730 v8::AccessType type); 730 v8::AccessType type);
731 bool MayIndexedAccess(JSObject* receiver, 731 bool MayIndexedAccess(JSObject* receiver,
732 uint32_t index, 732 uint32_t index,
733 v8::AccessType type); 733 v8::AccessType type);
734 bool MayObserveAccess(JSObject* receiver);
734 735
735 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 736 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
736 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); 737 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type);
737 738
738 // Exception throwing support. The caller should use the result 739 // Exception throwing support. The caller should use the result
739 // of Throw() as its return value. 740 // of Throw() as its return value.
740 Failure* Throw(Object* exception, MessageLocation* location = NULL); 741 Failure* Throw(Object* exception, MessageLocation* location = NULL);
741 // Re-throw an exception. This involves no error reporting since 742 // Re-throw an exception. This involves no error reporting since
742 // error reporting was handled when the exception was thrown 743 // error reporting was handled when the exception was thrown
743 // originally. 744 // originally.
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 1444
1444 // Mark the native context with out of memory. 1445 // Mark the native context with out of memory.
1445 inline void Context::mark_out_of_memory() { 1446 inline void Context::mark_out_of_memory() {
1446 native_context()->set_out_of_memory(HEAP->true_value()); 1447 native_context()->set_out_of_memory(HEAP->true_value());
1447 } 1448 }
1448 1449
1449 1450
1450 } } // namespace v8::internal 1451 } } // namespace v8::internal
1451 1452
1452 #endif // V8_ISOLATE_H_ 1453 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698