| 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 | 696 |
| 697 void PrintCurrentStackTrace(FILE* out); | 697 void PrintCurrentStackTrace(FILE* out); |
| 698 void PrintStackTrace(FILE* out, char* thread_data); | 698 void PrintStackTrace(FILE* out, char* thread_data); |
| 699 void PrintStack(StringStream* accumulator); | 699 void PrintStack(StringStream* accumulator); |
| 700 void PrintStack(); | 700 void PrintStack(); |
| 701 Handle<String> StackTraceString(); | 701 Handle<String> StackTraceString(); |
| 702 Handle<JSArray> CaptureCurrentStackTrace( | 702 Handle<JSArray> CaptureCurrentStackTrace( |
| 703 int frame_limit, | 703 int frame_limit, |
| 704 StackTrace::StackTraceOptions options); | 704 StackTrace::StackTraceOptions options); |
| 705 | 705 |
| 706 void CaptureAndSetCurrentStackTraceFor(Handle<Object> error_object); |
| 707 |
| 706 // Returns if the top context may access the given global object. If | 708 // Returns if the top context may access the given global object. If |
| 707 // the result is false, the pending exception is guaranteed to be | 709 // the result is false, the pending exception is guaranteed to be |
| 708 // set. | 710 // set. |
| 709 bool MayNamedAccess(JSObject* receiver, | 711 bool MayNamedAccess(JSObject* receiver, |
| 710 Object* key, | 712 Object* key, |
| 711 v8::AccessType type); | 713 v8::AccessType type); |
| 712 bool MayIndexedAccess(JSObject* receiver, | 714 bool MayIndexedAccess(JSObject* receiver, |
| 713 uint32_t index, | 715 uint32_t index, |
| 714 v8::AccessType type); | 716 v8::AccessType type); |
| 715 | 717 |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 ThreadLocalTop* archived_thread_data); | 1136 ThreadLocalTop* archived_thread_data); |
| 1135 void MarkCompactEpilogue(bool is_compacting, | 1137 void MarkCompactEpilogue(bool is_compacting, |
| 1136 ThreadLocalTop* archived_thread_data); | 1138 ThreadLocalTop* archived_thread_data); |
| 1137 | 1139 |
| 1138 void FillCache(); | 1140 void FillCache(); |
| 1139 | 1141 |
| 1140 void PropagatePendingExceptionToExternalTryCatch(); | 1142 void PropagatePendingExceptionToExternalTryCatch(); |
| 1141 | 1143 |
| 1142 void InitializeDebugger(); | 1144 void InitializeDebugger(); |
| 1143 | 1145 |
| 1146 // Traverse prototype chain to find out whether the object is derived from |
| 1147 // the Error object. |
| 1148 bool IsErrorObject(Handle<Object> obj); |
| 1149 |
| 1144 int stack_trace_nesting_level_; | 1150 int stack_trace_nesting_level_; |
| 1145 StringStream* incomplete_message_; | 1151 StringStream* incomplete_message_; |
| 1146 // The preallocated memory thread singleton. | 1152 // The preallocated memory thread singleton. |
| 1147 PreallocatedMemoryThread* preallocated_memory_thread_; | 1153 PreallocatedMemoryThread* preallocated_memory_thread_; |
| 1148 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT | 1154 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT |
| 1149 NoAllocationStringAllocator* preallocated_message_space_; | 1155 NoAllocationStringAllocator* preallocated_message_space_; |
| 1150 | 1156 |
| 1151 Bootstrapper* bootstrapper_; | 1157 Bootstrapper* bootstrapper_; |
| 1152 RuntimeProfiler* runtime_profiler_; | 1158 RuntimeProfiler* runtime_profiler_; |
| 1153 CompilationCache* compilation_cache_; | 1159 CompilationCache* compilation_cache_; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 | 1404 |
| 1399 // Mark the global context with out of memory. | 1405 // Mark the global context with out of memory. |
| 1400 inline void Context::mark_out_of_memory() { | 1406 inline void Context::mark_out_of_memory() { |
| 1401 global_context()->set_out_of_memory(HEAP->true_value()); | 1407 global_context()->set_out_of_memory(HEAP->true_value()); |
| 1402 } | 1408 } |
| 1403 | 1409 |
| 1404 | 1410 |
| 1405 } } // namespace v8::internal | 1411 } } // namespace v8::internal |
| 1406 | 1412 |
| 1407 #endif // V8_ISOLATE_H_ | 1413 #endif // V8_ISOLATE_H_ |
| OLD | NEW |