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/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 PropertyAttributes attr = | 823 PropertyAttributes attr = |
824 IsImmutableVariableMode(mode) ? FROZEN : SEALED; | 824 IsImmutableVariableMode(mode) ? FROZEN : SEALED; |
825 Handle<AccessorInfo> info = | 825 Handle<AccessorInfo> info = |
826 Accessors::MakeModuleExport(name, index, attr); | 826 Accessors::MakeModuleExport(name, index, attr); |
827 Handle<Object> result = | 827 Handle<Object> result = |
828 JSObject::SetAccessor(module, info).ToHandleChecked(); | 828 JSObject::SetAccessor(module, info).ToHandleChecked(); |
829 DCHECK(!result->IsUndefined()); | 829 DCHECK(!result->IsUndefined()); |
830 USE(result); | 830 USE(result); |
831 break; | 831 break; |
832 } | 832 } |
833 case INTERNAL: | |
834 case TEMPORARY: | 833 case TEMPORARY: |
835 case DYNAMIC: | 834 case DYNAMIC: |
836 case DYNAMIC_GLOBAL: | 835 case DYNAMIC_GLOBAL: |
837 case DYNAMIC_LOCAL: | 836 case DYNAMIC_LOCAL: |
838 UNREACHABLE(); | 837 UNREACHABLE(); |
839 } | 838 } |
840 } | 839 } |
841 | 840 |
842 JSObject::PreventExtensions(module).Assert(); | 841 JSObject::PreventExtensions(module).Assert(); |
843 } | 842 } |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 return Smi::FromInt(frame->GetArgumentsLength()); | 1149 return Smi::FromInt(frame->GetArgumentsLength()); |
1151 } | 1150 } |
1152 | 1151 |
1153 | 1152 |
1154 RUNTIME_FUNCTION(Runtime_Arguments) { | 1153 RUNTIME_FUNCTION(Runtime_Arguments) { |
1155 SealHandleScope shs(isolate); | 1154 SealHandleScope shs(isolate); |
1156 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); | 1155 return __RT_impl_Runtime_GetArgumentsProperty(args, isolate); |
1157 } | 1156 } |
1158 } // namespace internal | 1157 } // namespace internal |
1159 } // namespace v8 | 1158 } // namespace v8 |
OLD | NEW |