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

Side by Side Diff: src/api.cc

Issue 2123005: Add termination of the script to the bailout check. (Closed)
Patch Set: Same patch, moved to writable enlistment. Created 10 years, 7 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
« no previous file with comments | « no previous file | test/cctest/test-thread-termination.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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #ifdef ENABLE_VMSTATE_TRACKING 51 #ifdef ENABLE_VMSTATE_TRACKING
52 #define ENTER_V8 i::VMState __state__(i::OTHER) 52 #define ENTER_V8 i::VMState __state__(i::OTHER)
53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL) 53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL)
54 #else 54 #else
55 #define ENTER_V8 ((void) 0) 55 #define ENTER_V8 ((void) 0)
56 #define LEAVE_V8 ((void) 0) 56 #define LEAVE_V8 ((void) 0)
57 #endif 57 #endif
58 58
59 namespace v8 { 59 namespace v8 {
60 60
61 61 #define ON_BAILOUT(location, code) \
62 #define ON_BAILOUT(location, code) \ 62 if (IsDeadCheck(location) || v8::V8::IsExecutionTerminating()) { \
63 if (IsDeadCheck(location)) { \ 63 code; \
64 code; \ 64 UNREACHABLE(); \
65 UNREACHABLE(); \
66 } 65 }
67 66
68 67
69 #define EXCEPTION_PREAMBLE() \ 68 #define EXCEPTION_PREAMBLE() \
70 thread_local.IncrementCallDepth(); \ 69 thread_local.IncrementCallDepth(); \
71 ASSERT(!i::Top::external_caught_exception()); \ 70 ASSERT(!i::Top::external_caught_exception()); \
72 bool has_pending_exception = false 71 bool has_pending_exception = false
73 72
74 73
75 #define EXCEPTION_BAILOUT_CHECK(value) \ 74 #define EXCEPTION_BAILOUT_CHECK(value) \
(...skipping 4318 matching lines...) Expand 10 before | Expand all | Expand 10 after
4394 4393
4395 4394
4396 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 4395 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
4397 HandleScopeImplementer* thread_local = 4396 HandleScopeImplementer* thread_local =
4398 reinterpret_cast<HandleScopeImplementer*>(storage); 4397 reinterpret_cast<HandleScopeImplementer*>(storage);
4399 thread_local->IterateThis(v); 4398 thread_local->IterateThis(v);
4400 return storage + ArchiveSpacePerThread(); 4399 return storage + ArchiveSpacePerThread();
4401 } 4400 }
4402 4401
4403 } } // namespace v8::internal 4402 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-thread-termination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698