| 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/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 Handle<Name> type = Object::TypeOf(isolate, value); | 704 Handle<Name> type = Object::TypeOf(isolate, value); |
| 705 if (value->IsJSReceiver()) { | 705 if (value->IsJSReceiver()) { |
| 706 Handle<JSReceiver> object = Handle<JSReceiver>::cast(value); | 706 Handle<JSReceiver> object = Handle<JSReceiver>::cast(value); |
| 707 type = JSReceiver::GetConstructorName(object); | 707 type = JSReceiver::GetConstructorName(object); |
| 708 } | 708 } |
| 709 | 709 |
| 710 CollectTypeProfileNexus nexus(vector, vector->ToSlot(index)); | 710 CollectTypeProfileNexus nexus(vector, vector->ToSlot(index)); |
| 711 nexus.Collect(type); | 711 nexus.Collect(type); |
| 712 | 712 |
| 713 PrintF("%s\n", name->ToCString().get()); | |
| 714 nexus.Print(); | |
| 715 PrintF("\n"); | |
| 716 | |
| 717 return *name; | 713 return *name; |
| 718 } | 714 } |
| 719 | 715 |
| 720 // Return property without being observable by accessors or interceptors. | 716 // Return property without being observable by accessors or interceptors. |
| 721 RUNTIME_FUNCTION(Runtime_GetDataProperty) { | 717 RUNTIME_FUNCTION(Runtime_GetDataProperty) { |
| 722 HandleScope scope(isolate); | 718 HandleScope scope(isolate); |
| 723 DCHECK_EQ(2, args.length()); | 719 DCHECK_EQ(2, args.length()); |
| 724 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); | 720 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
| 725 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 721 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
| 726 return *JSReceiver::GetDataProperty(object, name); | 722 return *JSReceiver::GetDataProperty(object, name); |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 if (!success) return isolate->heap()->exception(); | 1017 if (!success) return isolate->heap()->exception(); |
| 1022 MAYBE_RETURN( | 1018 MAYBE_RETURN( |
| 1023 JSReceiver::CreateDataProperty(&it, value, Object::THROW_ON_ERROR), | 1019 JSReceiver::CreateDataProperty(&it, value, Object::THROW_ON_ERROR), |
| 1024 isolate->heap()->exception()); | 1020 isolate->heap()->exception()); |
| 1025 return *value; | 1021 return *value; |
| 1026 } | 1022 } |
| 1027 | 1023 |
| 1028 | 1024 |
| 1029 } // namespace internal | 1025 } // namespace internal |
| 1030 } // namespace v8 | 1026 } // namespace v8 |
| OLD | NEW |