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