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

Side by Side Diff: src/api.cc

Issue 179062: Fix the handling of termination exceptions thrown when creating error... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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 | « no previous file | src/debug.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 #define EXCEPTION_BAILOUT_CHECK(value) \ 69 #define EXCEPTION_BAILOUT_CHECK(value) \
70 do { \ 70 do { \
71 thread_local.DecrementCallDepth(); \ 71 thread_local.DecrementCallDepth(); \
72 if (has_pending_exception) { \ 72 if (has_pending_exception) { \
73 if (thread_local.CallDepthIsZero() && i::Top::is_out_of_memory()) { \ 73 if (thread_local.CallDepthIsZero() && i::Top::is_out_of_memory()) { \
74 if (!thread_local.IgnoreOutOfMemory()) \ 74 if (!thread_local.IgnoreOutOfMemory()) \
75 i::V8::FatalProcessOutOfMemory(NULL); \ 75 i::V8::FatalProcessOutOfMemory(NULL); \
76 } \ 76 } \
77 bool call_depth_is_zero = thread_local.CallDepthIsZero(); \ 77 bool call_depth_is_zero = thread_local.CallDepthIsZero(); \
78 i::Top::OptionalRescheduleException(call_depth_is_zero, false); \ 78 i::Top::OptionalRescheduleException(call_depth_is_zero); \
79 return value; \ 79 return value; \
80 } \ 80 } \
81 } while (false) 81 } while (false)
82 82
83 83
84 #define API_ENTRY_CHECK(msg) \ 84 #define API_ENTRY_CHECK(msg) \
85 do { \ 85 do { \
86 if (v8::Locker::IsActive()) { \ 86 if (v8::Locker::IsActive()) { \
87 ApiCheck(i::ThreadManager::IsLockedByCurrentThread(), \ 87 ApiCheck(i::ThreadManager::IsLockedByCurrentThread(), \
88 msg, \ 88 msg, \
(...skipping 3640 matching lines...) Expand 10 before | Expand all | Expand 10 after
3729 reinterpret_cast<HandleScopeImplementer*>(storage); 3729 reinterpret_cast<HandleScopeImplementer*>(storage);
3730 List<internal::Object**>* blocks_of_archived_thread = thread_local->Blocks(); 3730 List<internal::Object**>* blocks_of_archived_thread = thread_local->Blocks();
3731 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = 3731 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread =
3732 &thread_local->handle_scope_data_; 3732 &thread_local->handle_scope_data_;
3733 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); 3733 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread);
3734 3734
3735 return storage + ArchiveSpacePerThread(); 3735 return storage + ArchiveSpacePerThread();
3736 } 3736 }
3737 3737
3738 } } // namespace v8::internal 3738 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698