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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 823583003: Enable the embedder to specify what kind of context was disposed (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 12 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 | « src/heap/heap.cc ('k') | test/cctest/test-heap.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/natives.h" 10 #include "src/natives.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (unoptimized->kind() == Code::FUNCTION) { 163 if (unoptimized->kind() == Code::FUNCTION) {
164 unoptimized->ClearInlineCaches(); 164 unoptimized->ClearInlineCaches();
165 } 165 }
166 return isolate->heap()->undefined_value(); 166 return isolate->heap()->undefined_value();
167 } 167 }
168 168
169 169
170 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) { 170 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) {
171 HandleScope scope(isolate); 171 HandleScope scope(isolate);
172 DCHECK(args.length() == 0); 172 DCHECK(args.length() == 0);
173 isolate->heap()->NotifyContextDisposed(); 173 isolate->heap()->NotifyContextDisposed(true);
174 return isolate->heap()->undefined_value(); 174 return isolate->heap()->undefined_value();
175 } 175 }
176 176
177 177
178 RUNTIME_FUNCTION(Runtime_SetAllocationTimeout) { 178 RUNTIME_FUNCTION(Runtime_SetAllocationTimeout) {
179 SealHandleScope shs(isolate); 179 SealHandleScope shs(isolate);
180 DCHECK(args.length() == 2 || args.length() == 3); 180 DCHECK(args.length() == 2 || args.length() == 3);
181 #ifdef DEBUG 181 #ifdef DEBUG
182 CONVERT_SMI_ARG_CHECKED(interval, 0); 182 CONVERT_SMI_ARG_CHECKED(interval, 0);
183 CONVERT_SMI_ARG_CHECKED(timeout, 1); 183 CONVERT_SMI_ARG_CHECKED(timeout, 1);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 408 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
409 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 409 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
410 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 410 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
411 } 411 }
412 412
413 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 413 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
414 414
415 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 415 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
416 } 416 }
417 } // namespace v8::internal 417 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698