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 1632993003: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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-scopes.cc ('k') | src/snapshot/serialize.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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 return nullptr; 225 return nullptr;
226 } 226 }
227 return *Utils::OpenHandle(*obj); 227 return *Utils::OpenHandle(*obj);
228 } 228 }
229 229
230 230
231 RUNTIME_FUNCTION(Runtime_ClearFunctionTypeFeedback) { 231 RUNTIME_FUNCTION(Runtime_ClearFunctionTypeFeedback) {
232 HandleScope scope(isolate); 232 HandleScope scope(isolate);
233 DCHECK(args.length() == 1); 233 DCHECK(args.length() == 1);
234 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 234 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
235 function->ClearTypeFeedbackInfo(); 235 function->shared()->ClearTypeFeedbackInfo();
236 Code* unoptimized = function->shared()->code(); 236 Code* unoptimized = function->shared()->code();
237 if (unoptimized->kind() == Code::FUNCTION) { 237 if (unoptimized->kind() == Code::FUNCTION) {
238 unoptimized->ClearInlineCaches(); 238 unoptimized->ClearInlineCaches();
239 } 239 }
240 return isolate->heap()->undefined_value(); 240 return isolate->heap()->undefined_value();
241 } 241 }
242 242
243 243
244 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) { 244 RUNTIME_FUNCTION(Runtime_NotifyContextDisposed) {
245 HandleScope scope(isolate); 245 HandleScope scope(isolate);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 498 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
499 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 499 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
500 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 500 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
501 } 501 }
502 502
503 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 503 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
504 504
505 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 505 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
506 } // namespace internal 506 } // namespace internal
507 } // namespace v8 507 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-scopes.cc ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698