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/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
11 #include "src/runtime/runtime.h" | 11 #include "src/runtime/runtime.h" |
12 #include "src/runtime/runtime-utils.h" | 12 #include "src/runtime/runtime-utils.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 | 17 |
18 MaybeHandle<Name> Runtime::ToName(Isolate* isolate, Handle<Object> key) { | 18 MaybeHandle<Name> Runtime::ToName(Isolate* isolate, Handle<Object> key) { |
19 if (key->IsName()) { | 19 if (key->IsName()) { |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); | 1456 CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
1457 | 1457 |
1458 RETURN_FAILURE_ON_EXCEPTION( | 1458 RETURN_FAILURE_ON_EXCEPTION( |
1459 isolate, | 1459 isolate, |
1460 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), | 1460 JSObject::DefineAccessor(object, name, isolate->factory()->null_value(), |
1461 setter, attrs)); | 1461 setter, attrs)); |
1462 return isolate->heap()->undefined_value(); | 1462 return isolate->heap()->undefined_value(); |
1463 } | 1463 } |
1464 } // namespace internal | 1464 } // namespace internal |
1465 } // namespace v8 | 1465 } // namespace v8 |
OLD | NEW |