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

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

Issue 1668103002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 10 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-function.cc ('k') | src/runtime/runtime-test.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 // caller has been inlined, better make sure we are not hitting that case. 719 // caller has been inlined, better make sure we are not hitting that case.
720 JavaScriptFrameIterator it(isolate); 720 JavaScriptFrameIterator it(isolate);
721 DCHECK(!it.frame()->HasInlinedFrames()); 721 DCHECK(!it.frame()->HasInlinedFrames());
722 #endif // DEBUG 722 #endif // DEBUG
723 Handle<JSFunction> callee; 723 Handle<JSFunction> callee;
724 ParameterArguments argument_getter(parameters); 724 ParameterArguments argument_getter(parameters);
725 return *NewRestArguments(isolate, callee, argument_getter, num_params, 725 return *NewRestArguments(isolate, callee, argument_getter, num_params,
726 rest_index); 726 rest_index);
727 } 727 }
728 728
729 RUNTIME_FUNCTION(Runtime_InstallLiterals) {
730 HandleScope scope(isolate);
731 DCHECK_EQ(1, args.length());
732 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
733 JSFunction::EnsureLiterals(function);
734 return *function;
735 }
729 736
730 RUNTIME_FUNCTION(Runtime_NewClosure) { 737 RUNTIME_FUNCTION(Runtime_NewClosure) {
731 HandleScope scope(isolate); 738 HandleScope scope(isolate);
732 DCHECK_EQ(1, args.length()); 739 DCHECK_EQ(1, args.length());
733 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); 740 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0);
734 Handle<Context> context(isolate->context(), isolate); 741 Handle<Context> context(isolate->context(), isolate);
735 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context, 742 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context,
736 NOT_TENURED); 743 NOT_TENURED);
737 } 744 }
738 745
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1259
1253 // Lookup in the initial Object.prototype object. 1260 // Lookup in the initial Object.prototype object.
1254 Handle<Object> result; 1261 Handle<Object> result;
1255 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 1262 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
1256 isolate, result, 1263 isolate, result,
1257 Object::GetProperty(isolate->initial_object_prototype(), key)); 1264 Object::GetProperty(isolate->initial_object_prototype(), key));
1258 return *result; 1265 return *result;
1259 } 1266 }
1260 } // namespace internal 1267 } // namespace internal
1261 } // namespace v8 1268 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-function.cc ('k') | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698