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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. 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
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 JavaScriptFrameIterator it(isolate); 716 JavaScriptFrameIterator it(isolate);
717 DCHECK(!it.frame()->HasInlinedFrames()); 717 DCHECK(!it.frame()->HasInlinedFrames());
718 #endif // DEBUG 718 #endif // DEBUG
719 Handle<JSFunction> callee; 719 Handle<JSFunction> callee;
720 ParameterArguments argument_getter(parameters); 720 ParameterArguments argument_getter(parameters);
721 return *NewRestArguments(isolate, callee, argument_getter, num_params, 721 return *NewRestArguments(isolate, callee, argument_getter, num_params,
722 rest_index); 722 rest_index);
723 } 723 }
724 724
725 725
726 RUNTIME_FUNCTION(Runtime_InstallLiterals) {
727 HandleScope scope(isolate);
728 DCHECK_EQ(1, args.length());
729 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
730 JSFunction::EnsureLiterals(function);
731 return *function;
732 }
733
734
726 RUNTIME_FUNCTION(Runtime_NewClosure) { 735 RUNTIME_FUNCTION(Runtime_NewClosure) {
727 HandleScope scope(isolate); 736 HandleScope scope(isolate);
728 DCHECK_EQ(1, args.length()); 737 DCHECK_EQ(1, args.length());
729 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); 738 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0);
730 Handle<Context> context(isolate->context(), isolate); 739 Handle<Context> context(isolate->context(), isolate);
731 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context, 740 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context,
732 NOT_TENURED); 741 NOT_TENURED);
733 } 742 }
734 743
735 744
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1257
1249 // Lookup in the initial Object.prototype object. 1258 // Lookup in the initial Object.prototype object.
1250 Handle<Object> result; 1259 Handle<Object> result;
1251 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 1260 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
1252 isolate, result, 1261 isolate, result,
1253 Object::GetProperty(isolate->initial_object_prototype(), key)); 1262 Object::GetProperty(isolate->initial_object_prototype(), key));
1254 return *result; 1263 return *result;
1255 } 1264 }
1256 } // namespace internal 1265 } // namespace internal
1257 } // namespace v8 1266 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698