| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/runtime/runtime.h" | 9 #include "src/runtime/runtime.h" |
| 10 #include "src/runtime/runtime-utils.h" | 10 #include "src/runtime/runtime-utils.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 NewTypeError("duplicate_template_property", HandleVector(args, 1))); | 116 NewTypeError("duplicate_template_property", HandleVector(args, 1))); |
| 117 } | 117 } |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 Handle<Object> result; | 120 Handle<Object> result; |
| 121 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 121 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 122 isolate, result, | 122 isolate, result, |
| 123 Runtime::DefineObjectProperty(object, key, value, attributes)); | 123 Runtime::DefineObjectProperty(object, key, value, attributes)); |
| 124 return *result; | 124 return *result; |
| 125 } | 125 } |
| 126 |
| 127 |
| 128 RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) { |
| 129 HandleScope scope(isolate); |
| 130 RUNTIME_ASSERT(args.length() == 1); |
| 131 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| 132 { |
| 133 Handle<Object> args[1] = {function}; |
| 134 THROW_NEW_ERROR_RETURN_FAILURE( |
| 135 isolate, NewTypeError("illegal_invocation", HandleVector(args, 1))); |
| 136 } |
| 137 } |
| 126 } | 138 } |
| 127 } // namespace v8::internal | 139 } // namespace v8::internal |
| OLD | NEW |