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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <limits> | 6 #include <limits> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 193 } |
194 | 194 |
195 | 195 |
196 RUNTIME_FUNCTION(Runtime_DefineClassMethod) { | 196 RUNTIME_FUNCTION(Runtime_DefineClassMethod) { |
197 HandleScope scope(isolate); | 197 HandleScope scope(isolate); |
198 DCHECK(args.length() == 3); | 198 DCHECK(args.length() == 3); |
199 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); | 199 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
200 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 200 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
201 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 2); | 201 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 2); |
202 | 202 |
203 RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::DefinePropertyOrElement( | 203 RETURN_FAILURE_ON_EXCEPTION(isolate, |
204 object, name, function, DONT_ENUM)); | 204 JSObject::DefinePropertyOrElementIgnoreAttributes( |
| 205 object, name, function, DONT_ENUM)); |
205 return isolate->heap()->undefined_value(); | 206 return isolate->heap()->undefined_value(); |
206 } | 207 } |
207 | 208 |
208 | 209 |
209 RUNTIME_FUNCTION(Runtime_ClassGetSourceCode) { | 210 RUNTIME_FUNCTION(Runtime_ClassGetSourceCode) { |
210 HandleScope shs(isolate); | 211 HandleScope shs(isolate); |
211 DCHECK(args.length() == 1); | 212 DCHECK(args.length() == 1); |
212 CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); | 213 CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); |
213 | 214 |
214 Handle<Object> script; | 215 Handle<Object> script; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 return nullptr; | 448 return nullptr; |
448 } | 449 } |
449 | 450 |
450 | 451 |
451 RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) { | 452 RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) { |
452 UNIMPLEMENTED(); | 453 UNIMPLEMENTED(); |
453 return nullptr; | 454 return nullptr; |
454 } | 455 } |
455 } // namespace internal | 456 } // namespace internal |
456 } // namespace v8 | 457 } // namespace v8 |
OLD | NEW |