OLD | NEW |
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 Loading... |
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 } | |
736 | 729 |
737 RUNTIME_FUNCTION(Runtime_NewClosure) { | 730 RUNTIME_FUNCTION(Runtime_NewClosure) { |
738 HandleScope scope(isolate); | 731 HandleScope scope(isolate); |
739 DCHECK_EQ(1, args.length()); | 732 DCHECK_EQ(1, args.length()); |
740 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); | 733 CONVERT_ARG_HANDLE_CHECKED(SharedFunctionInfo, shared, 0); |
741 Handle<Context> context(isolate->context(), isolate); | 734 Handle<Context> context(isolate->context(), isolate); |
742 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context, | 735 return *isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context, |
743 NOT_TENURED); | 736 NOT_TENURED); |
744 } | 737 } |
745 | 738 |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 | 1252 |
1260 // Lookup in the initial Object.prototype object. | 1253 // Lookup in the initial Object.prototype object. |
1261 Handle<Object> result; | 1254 Handle<Object> result; |
1262 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 1255 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
1263 isolate, result, | 1256 isolate, result, |
1264 Object::GetProperty(isolate->initial_object_prototype(), key)); | 1257 Object::GetProperty(isolate->initial_object_prototype(), key)); |
1265 return *result; | 1258 return *result; |
1266 } | 1259 } |
1267 } // namespace internal | 1260 } // namespace internal |
1268 } // namespace v8 | 1261 } // namespace v8 |
OLD | NEW |