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

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

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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/runtime/runtime-generator.cc ('k') | src/snapshot/partial-serializer.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/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
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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | src/snapshot/partial-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698