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

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

Issue 1417213005: Remove several JSFunction delegator functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-debug.cc ('k') | src/runtime/runtime-scopes.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/compiler.h" 9 #include "src/compiler.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 return Smi::FromInt(code->SourcePosition(pc)); 156 return Smi::FromInt(code->SourcePosition(pc));
157 } 157 }
158 158
159 159
160 RUNTIME_FUNCTION(Runtime_FunctionSetInstanceClassName) { 160 RUNTIME_FUNCTION(Runtime_FunctionSetInstanceClassName) {
161 SealHandleScope shs(isolate); 161 SealHandleScope shs(isolate);
162 DCHECK(args.length() == 2); 162 DCHECK(args.length() == 2);
163 163
164 CONVERT_ARG_CHECKED(JSFunction, fun, 0); 164 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
165 CONVERT_ARG_CHECKED(String, name, 1); 165 CONVERT_ARG_CHECKED(String, name, 1);
166 fun->SetInstanceClassName(name); 166 fun->shared()->set_instance_class_name(name);
167 return isolate->heap()->undefined_value(); 167 return isolate->heap()->undefined_value();
168 } 168 }
169 169
170 170
171 RUNTIME_FUNCTION(Runtime_FunctionSetLength) { 171 RUNTIME_FUNCTION(Runtime_FunctionSetLength) {
172 SealHandleScope shs(isolate); 172 SealHandleScope shs(isolate);
173 DCHECK(args.length() == 2); 173 DCHECK(args.length() == 2);
174 174
175 CONVERT_ARG_CHECKED(JSFunction, fun, 0); 175 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
176 CONVERT_SMI_ARG_CHECKED(length, 1); 176 CONVERT_SMI_ARG_CHECKED(length, 1);
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 640
641 641
642 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) { 642 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) {
643 HandleScope scope(isolate); 643 HandleScope scope(isolate);
644 DCHECK(args.length() == 0); 644 DCHECK(args.length() == 0);
645 THROW_NEW_ERROR_RETURN_FAILURE(isolate, 645 THROW_NEW_ERROR_RETURN_FAILURE(isolate,
646 NewTypeError(MessageTemplate::kStrongArity)); 646 NewTypeError(MessageTemplate::kStrongArity));
647 } 647 }
648 } // namespace internal 648 } // namespace internal
649 } // namespace v8 649 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698