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

Side by Side Diff: src/runtime/runtime-scopes.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-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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // caller has been inlined, better make sure we are not hitting that case. 715 // caller has been inlined, better make sure we are not hitting that case.
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 RUNTIME_FUNCTION(Runtime_InstallLiterals) {
726 HandleScope scope(isolate);
727 DCHECK_EQ(1, args.length());
728 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
729 JSFunction::EnsureLiterals(function);
730 return *function;
731 }
732 725
733 RUNTIME_FUNCTION(Runtime_NewClosure) { 726 RUNTIME_FUNCTION(Runtime_NewClosure) {
734 HandleScope scope(isolate); 727 HandleScope scope(isolate);
735 DCHECK_EQ(1, args.length()); 728 DCHECK_EQ(1, args.length());
736 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); 729 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0);
737 Handle<Context> context(isolate->context(), isolate); 730 Handle<Context> context(isolate->context(), isolate);
738 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context, 731 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context,
739 NOT_TENURED); 732 NOT_TENURED);
740 } 733 }
741 734
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1248
1256 // Lookup in the initial Object.prototype object. 1249 // Lookup in the initial Object.prototype object.
1257 Handle<Object> result; 1250 Handle<Object> result;
1258 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 1251 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
1259 isolate, result, 1252 isolate, result,
1260 Object::GetProperty(isolate->initial_object_prototype(), key)); 1253 Object::GetProperty(isolate->initial_object_prototype(), key));
1261 return *result; 1254 return *result;
1262 } 1255 }
1263 } // namespace internal 1256 } // namespace internal
1264 } // namespace v8 1257 } // 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