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 "v8.h" | 5 #include "src/v8.h" |
6 #include "accessors.h" | 6 #include "src/accessors.h" |
7 | 7 |
8 #include "compiler.h" | 8 #include "src/compiler.h" |
9 #include "contexts.h" | 9 #include "src/contexts.h" |
10 #include "deoptimizer.h" | 10 #include "src/deoptimizer.h" |
11 #include "execution.h" | 11 #include "src/execution.h" |
12 #include "factory.h" | 12 #include "src/factory.h" |
13 #include "frames-inl.h" | 13 #include "src/frames-inl.h" |
14 #include "isolate.h" | 14 #include "src/isolate.h" |
15 #include "list-inl.h" | 15 #include "src/list-inl.h" |
16 #include "property-details.h" | 16 #include "src/property-details.h" |
17 #include "api.h" | 17 #include "src/api.h" |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 | 22 |
23 // We have a slight impedance mismatch between the external API and the way we | 23 // We have a slight impedance mismatch between the external API and the way we |
24 // use callbacks internally: Externally, callbacks can only be used with | 24 // use callbacks internally: Externally, callbacks can only be used with |
25 // v8::Object, but internally we even have callbacks on entities which are | 25 // v8::Object, but internally we even have callbacks on entities which are |
26 // higher in the hierarchy, so we can only return i::Object here, not | 26 // higher in the hierarchy, so we can only return i::Object here, not |
27 // i::JSObject. | 27 // i::JSObject. |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 info->set_data(Smi::FromInt(index)); | 1352 info->set_data(Smi::FromInt(index)); |
1353 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); | 1353 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); |
1354 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); | 1354 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); |
1355 info->set_getter(*getter); | 1355 info->set_getter(*getter); |
1356 if (!(attributes & ReadOnly)) info->set_setter(*setter); | 1356 if (!(attributes & ReadOnly)) info->set_setter(*setter); |
1357 return info; | 1357 return info; |
1358 } | 1358 } |
1359 | 1359 |
1360 | 1360 |
1361 } } // namespace v8::internal | 1361 } } // namespace v8::internal |
OLD | NEW |