| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 /** | 5 /** |
| 6 * Implementation for v8-experimental.h. | 6 * Implementation for v8-experimental.h. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "src/api-experimental.h" | 9 #include "src/api-experimental.h" |
| 10 | 10 |
| 11 #include "include/v8-experimental.h" |
| 11 #include "include/v8.h" | 12 #include "include/v8.h" |
| 12 #include "include/v8-experimental.h" | |
| 13 #include "src/api.h" | 13 #include "src/api.h" |
| 14 #include "src/fast-accessor-assembler.h" | 14 #include "src/fast-accessor-assembler.h" |
| 15 #include "src/objects-inl.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 v8::internal::FastAccessorAssembler* FromApi( | 19 v8::internal::FastAccessorAssembler* FromApi( |
| 19 v8::experimental::FastAccessorBuilder* builder) { | 20 v8::experimental::FastAccessorBuilder* builder) { |
| 20 return reinterpret_cast<v8::internal::FastAccessorAssembler*>(builder); | 21 return reinterpret_cast<v8::internal::FastAccessorAssembler*>(builder); |
| 21 } | 22 } |
| 22 | 23 |
| 23 v8::experimental::FastAccessorBuilder* FromInternal( | 24 v8::experimental::FastAccessorBuilder* FromInternal( |
| 24 v8::internal::FastAccessorAssembler* fast_accessor_assembler) { | 25 v8::internal::FastAccessorAssembler* fast_accessor_assembler) { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); | 130 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); |
| 130 } | 131 } |
| 131 | 132 |
| 132 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( | 133 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( |
| 133 v8::FunctionCallback callback, ValueId value_id) { | 134 v8::FunctionCallback callback, ValueId value_id) { |
| 134 return FromApi(this)->Call(callback, value_id); | 135 return FromApi(this)->Call(callback, value_id); |
| 135 } | 136 } |
| 136 | 137 |
| 137 } // namespace experimental | 138 } // namespace experimental |
| 138 } // namespace v8 | 139 } // namespace v8 |
| OLD | NEW |