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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.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/frames-inl.h" | 9 #include "src/frames-inl.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 return nullptr; | 251 return nullptr; |
252 } | 252 } |
253 return *Utils::OpenHandle(*obj); | 253 return *Utils::OpenHandle(*obj); |
254 } | 254 } |
255 | 255 |
256 | 256 |
257 RUNTIME_FUNCTION(Runtime_ClearFunctionTypeFeedback) { | 257 RUNTIME_FUNCTION(Runtime_ClearFunctionTypeFeedback) { |
258 HandleScope scope(isolate); | 258 HandleScope scope(isolate); |
259 DCHECK(args.length() == 1); | 259 DCHECK(args.length() == 1); |
260 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); | 260 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
261 function->shared()->ClearTypeFeedbackInfo(); | 261 function->ClearTypeFeedbackInfo(); |
262 Code* unoptimized = function->shared()->code(); | 262 Code* unoptimized = function->shared()->code(); |
263 if (unoptimized->kind() == Code::FUNCTION) { | 263 if (unoptimized->kind() == Code::FUNCTION) { |
264 unoptimized->ClearInlineCaches(); | 264 unoptimized->ClearInlineCaches(); |
265 } | 265 } |
266 return isolate->heap()->undefined_value(); | 266 return isolate->heap()->undefined_value(); |
267 } | 267 } |
268 | 268 |
269 | 269 |
270 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) { | 270 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) { |
271 HandleScope scope(isolate); | 271 HandleScope scope(isolate); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 558 |
559 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { | 559 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { |
560 SealHandleScope shs(isolate); | 560 SealHandleScope shs(isolate); |
561 DCHECK_EQ(0, args.length()); | 561 DCHECK_EQ(0, args.length()); |
562 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); | 562 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); |
563 } | 563 } |
564 | 564 |
565 | 565 |
566 } // namespace internal | 566 } // namespace internal |
567 } // namespace v8 | 567 } // namespace v8 |
OLD | NEW |