OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/api.h" | 8 #include "src/api.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/contexts.h" | 10 #include "src/contexts.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 DCHECK(it.HolderIsReceiverOrHiddenPrototype()); | 174 DCHECK(it.HolderIsReceiverOrHiddenPrototype()); |
175 | 175 |
176 if (Object::SetDataProperty(&it, value).is_null()) { | 176 if (Object::SetDataProperty(&it, value).is_null()) { |
177 isolate->OptionalRescheduleException(false); | 177 isolate->OptionalRescheduleException(false); |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 | 181 |
182 Handle<AccessorInfo> Accessors::ArgumentsIteratorInfo( | 182 Handle<AccessorInfo> Accessors::ArgumentsIteratorInfo( |
183 Isolate* isolate, PropertyAttributes attributes) { | 183 Isolate* isolate, PropertyAttributes attributes) { |
184 Handle<Name> name(isolate->native_context()->iterator_symbol(), isolate); | 184 Handle<Name> name = isolate->factory()->iterator_symbol(); |
185 return MakeAccessor(isolate, name, &ArgumentsIteratorGetter, | 185 return MakeAccessor(isolate, name, &ArgumentsIteratorGetter, |
186 &ArgumentsIteratorSetter, attributes); | 186 &ArgumentsIteratorSetter, attributes); |
187 } | 187 } |
188 | 188 |
189 | 189 |
190 // | 190 // |
191 // Accessors::ArrayLength | 191 // Accessors::ArrayLength |
192 // | 192 // |
193 | 193 |
194 | 194 |
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 info->set_data(Smi::FromInt(index)); | 1402 info->set_data(Smi::FromInt(index)); |
1403 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); | 1403 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); |
1404 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); | 1404 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); |
1405 info->set_getter(*getter); | 1405 info->set_getter(*getter); |
1406 if (!(attributes & ReadOnly)) info->set_setter(*setter); | 1406 if (!(attributes & ReadOnly)) info->set_setter(*setter); |
1407 return info; | 1407 return info; |
1408 } | 1408 } |
1409 | 1409 |
1410 | 1410 |
1411 } } // namespace v8::internal | 1411 } } // namespace v8::internal |
OLD | NEW |