Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 745 StackTrace::StackTraceOptions options); | 745 StackTrace::StackTraceOptions options); |
| 746 | 746 |
| 747 Handle<JSArray> CaptureSimpleStackTrace(Handle<JSObject> error_object, | 747 Handle<JSArray> CaptureSimpleStackTrace(Handle<JSObject> error_object, |
| 748 Handle<Object> caller, | 748 Handle<Object> caller, |
| 749 int limit); | 749 int limit); |
| 750 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); | 750 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); |
| 751 | 751 |
| 752 // Returns if the top context may access the given global object. If | 752 // Returns if the top context may access the given global object. If |
| 753 // the result is false, the pending exception is guaranteed to be | 753 // the result is false, the pending exception is guaranteed to be |
| 754 // set. | 754 // set. |
| 755 | |
| 756 // TODO(yangguo): temporary wrappers | |
| 757 bool MayNamedAccessWrapper(Handle<JSObject> receiver, | |
|
Michael Starzinger
2013/10/01 14:46:19
At some point we want these functions to be the de
| |
| 758 Handle<Object> key, | |
| 759 v8::AccessType type) { | |
| 760 return MayNamedAccess(*receiver, *key, type); | |
| 761 } | |
| 762 bool MayIndexedAccessWrapper(Handle<JSObject> receiver, | |
| 763 uint32_t index, | |
| 764 v8::AccessType type) { | |
| 765 return MayIndexedAccess(*receiver, index, type); | |
| 766 } | |
| 767 | |
| 755 bool MayNamedAccess(JSObject* receiver, | 768 bool MayNamedAccess(JSObject* receiver, |
| 756 Object* key, | 769 Object* key, |
| 757 v8::AccessType type); | 770 v8::AccessType type); |
| 758 bool MayIndexedAccess(JSObject* receiver, | 771 bool MayIndexedAccess(JSObject* receiver, |
| 759 uint32_t index, | 772 uint32_t index, |
| 760 v8::AccessType type); | 773 v8::AccessType type); |
| 761 | 774 |
| 762 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 775 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
| 763 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); | 776 void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); |
| 764 | 777 |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1516 | 1529 |
| 1517 // Mark the native context with out of memory. | 1530 // Mark the native context with out of memory. |
| 1518 inline void Context::mark_out_of_memory() { | 1531 inline void Context::mark_out_of_memory() { |
| 1519 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); | 1532 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); |
| 1520 } | 1533 } |
| 1521 | 1534 |
| 1522 | 1535 |
| 1523 } } // namespace v8::internal | 1536 } } // namespace v8::internal |
| 1524 | 1537 |
| 1525 #endif // V8_ISOLATE_H_ | 1538 #endif // V8_ISOLATE_H_ |
| OLD | NEW |