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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
700 } | 700 } |
701 void set_ignore_out_of_memory(bool value) { | 701 void set_ignore_out_of_memory(bool value) { |
702 thread_local_top_.ignore_out_of_memory_ = value; | 702 thread_local_top_.ignore_out_of_memory_ = value; |
703 } | 703 } |
704 | 704 |
705 void PrintCurrentStackTrace(FILE* out); | 705 void PrintCurrentStackTrace(FILE* out); |
706 void PrintStackTrace(FILE* out, char* thread_data); | 706 void PrintStackTrace(FILE* out, char* thread_data); |
707 void PrintStack(StringStream* accumulator); | 707 void PrintStack(StringStream* accumulator); |
708 void PrintStack(); | 708 void PrintStack(); |
709 Handle<String> StackTraceString(); | 709 Handle<String> StackTraceString(); |
710 void PushStackTraceAndDie(unsigned int magic, | |
711 Object* object, | |
712 Map* map, | |
713 unsigned int magic2); | |
Yang
2012/09/05 12:03:48
Maybe even add the NO_INLINE macro here. Though pr
| |
710 Handle<JSArray> CaptureCurrentStackTrace( | 714 Handle<JSArray> CaptureCurrentStackTrace( |
711 int frame_limit, | 715 int frame_limit, |
712 StackTrace::StackTraceOptions options); | 716 StackTrace::StackTraceOptions options); |
713 | 717 |
714 void CaptureAndSetCurrentStackTraceFor(Handle<JSObject> error_object); | 718 void CaptureAndSetCurrentStackTraceFor(Handle<JSObject> error_object); |
715 | 719 |
716 // Returns if the top context may access the given global object. If | 720 // Returns if the top context may access the given global object. If |
717 // the result is false, the pending exception is guaranteed to be | 721 // the result is false, the pending exception is guaranteed to be |
718 // set. | 722 // set. |
719 bool MayNamedAccess(JSObject* receiver, | 723 bool MayNamedAccess(JSObject* receiver, |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1443 | 1447 |
1444 // Mark the native context with out of memory. | 1448 // Mark the native context with out of memory. |
1445 inline void Context::mark_out_of_memory() { | 1449 inline void Context::mark_out_of_memory() { |
1446 native_context()->set_out_of_memory(HEAP->true_value()); | 1450 native_context()->set_out_of_memory(HEAP->true_value()); |
1447 } | 1451 } |
1448 | 1452 |
1449 | 1453 |
1450 } } // namespace v8::internal | 1454 } } // namespace v8::internal |
1451 | 1455 |
1452 #endif // V8_ISOLATE_H_ | 1456 #endif // V8_ISOLATE_H_ |
OLD | NEW |