OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/isolate.h" | 5 #include "src/isolate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 Handle<Object> no_caller; | 933 Handle<Object> no_caller; |
934 Handle<Object> exception; | 934 Handle<Object> exception; |
935 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 935 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
936 this, exception, | 936 this, exception, |
937 ErrorUtils::Construct(this, fun, fun, msg, SKIP_NONE, no_caller, true)); | 937 ErrorUtils::Construct(this, fun, fun, msg, SKIP_NONE, no_caller, true)); |
938 | 938 |
939 Throw(*exception, nullptr); | 939 Throw(*exception, nullptr); |
940 | 940 |
941 #ifdef VERIFY_HEAP | 941 #ifdef VERIFY_HEAP |
942 if (FLAG_verify_heap && FLAG_stress_compaction) { | 942 if (FLAG_verify_heap && FLAG_stress_compaction) { |
943 heap()->CollectAllGarbage(Heap::kNoGCFlags, "trigger compaction"); | 943 heap()->CollectAllGarbage(Heap::kNoGCFlags, |
| 944 GarbageCollectionReason::kTesting); |
944 } | 945 } |
945 #endif // VERIFY_HEAP | 946 #endif // VERIFY_HEAP |
946 | 947 |
947 return heap()->exception(); | 948 return heap()->exception(); |
948 } | 949 } |
949 | 950 |
950 | 951 |
951 Object* Isolate::TerminateExecution() { | 952 Object* Isolate::TerminateExecution() { |
952 return Throw(heap_.termination_exception(), nullptr); | 953 return Throw(heap_.termination_exception(), nullptr); |
953 } | 954 } |
(...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 // Then check whether this scope intercepts. | 3162 // Then check whether this scope intercepts. |
3162 if ((flag & intercept_mask_)) { | 3163 if ((flag & intercept_mask_)) { |
3163 intercepted_flags_ |= flag; | 3164 intercepted_flags_ |= flag; |
3164 return true; | 3165 return true; |
3165 } | 3166 } |
3166 return false; | 3167 return false; |
3167 } | 3168 } |
3168 | 3169 |
3169 } // namespace internal | 3170 } // namespace internal |
3170 } // namespace v8 | 3171 } // namespace v8 |
OLD | NEW |