| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |