| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |