| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return | 112 return |
| 113 CheckForName(name, isolate->heap()->length_string(), | 113 CheckForName(name, isolate->heap()->length_string(), |
| 114 JSArray::kLengthOffset, object_offset); | 114 JSArray::kLengthOffset, object_offset); |
| 115 case JS_TYPED_ARRAY_TYPE: | 115 case JS_TYPED_ARRAY_TYPE: |
| 116 return | 116 return |
| 117 CheckForName(name, isolate->heap()->length_string(), | 117 CheckForName(name, isolate->heap()->length_string(), |
| 118 JSTypedArray::kLengthOffset, object_offset) || | 118 JSTypedArray::kLengthOffset, object_offset) || |
| 119 CheckForName(name, isolate->heap()->byte_length_string(), | 119 CheckForName(name, isolate->heap()->byte_length_string(), |
| 120 JSTypedArray::kByteLengthOffset, object_offset) || | 120 JSTypedArray::kByteLengthOffset, object_offset) || |
| 121 CheckForName(name, isolate->heap()->byte_offset_string(), | 121 CheckForName(name, isolate->heap()->byte_offset_string(), |
| 122 JSTypedArray::kByteOffsetOffset, object_offset); | 122 JSTypedArray::kByteOffsetOffset, object_offset) || |
| 123 CheckForName(name, isolate->heap()->buffer_string(), |
| 124 JSTypedArray::kBufferOffset, object_offset); |
| 123 case JS_ARRAY_BUFFER_TYPE: | 125 case JS_ARRAY_BUFFER_TYPE: |
| 124 return | 126 return |
| 125 CheckForName(name, isolate->heap()->byte_length_string(), | 127 CheckForName(name, isolate->heap()->byte_length_string(), |
| 126 JSArrayBuffer::kByteLengthOffset, object_offset); | 128 JSArrayBuffer::kByteLengthOffset, object_offset); |
| 127 case JS_DATA_VIEW_TYPE: | 129 case JS_DATA_VIEW_TYPE: |
| 128 return | 130 return |
| 129 CheckForName(name, isolate->heap()->byte_length_string(), | 131 CheckForName(name, isolate->heap()->byte_length_string(), |
| 130 JSDataView::kByteLengthOffset, object_offset) || | 132 JSDataView::kByteLengthOffset, object_offset) || |
| 131 CheckForName(name, isolate->heap()->byte_offset_string(), | 133 CheckForName(name, isolate->heap()->byte_offset_string(), |
| 132 JSDataView::kByteOffsetOffset, object_offset); | 134 JSDataView::kByteOffsetOffset, object_offset) || |
| 135 CheckForName(name, isolate->heap()->buffer_string(), |
| 136 JSDataView::kBufferOffset, object_offset); |
| 133 default: | 137 default: |
| 134 return false; | 138 return false; |
| 135 } | 139 } |
| 136 } | 140 } |
| 137 | 141 |
| 138 | 142 |
| 139 template | 143 template |
| 140 bool Accessors::IsJSObjectFieldAccessor<Type>(Type* type, | 144 bool Accessors::IsJSObjectFieldAccessor<Type>(Type* type, |
| 141 Handle<String> name, | 145 Handle<String> name, |
| 142 int* object_offset); | 146 int* object_offset); |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 info->set_data(Smi::FromInt(index)); | 967 info->set_data(Smi::FromInt(index)); |
| 964 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); | 968 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); |
| 965 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); | 969 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); |
| 966 info->set_getter(*getter); | 970 info->set_getter(*getter); |
| 967 if (!(attributes & ReadOnly)) info->set_setter(*setter); | 971 if (!(attributes & ReadOnly)) info->set_setter(*setter); |
| 968 return info; | 972 return info; |
| 969 } | 973 } |
| 970 | 974 |
| 971 | 975 |
| 972 } } // namespace v8::internal | 976 } } // namespace v8::internal |
| OLD | NEW |