| 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.h" | 11 #include "include/v8.h" |
| 12 #include "include/v8-experimental.h" | 12 #include "include/v8-experimental.h" |
| 13 #include "src/api.h" | 13 #include "src/api.h" |
| 14 #include "src/compiler/fast-accessor-assembler.h" | 14 #include "src/fast-accessor-assembler.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 | 18 |
| 19 v8::internal::compiler::FastAccessorAssembler* FromApi( | 19 v8::internal::compiler::FastAccessorAssembler* FromApi( |
| 20 v8::experimental::FastAccessorBuilder* builder) { | 20 v8::experimental::FastAccessorBuilder* builder) { |
| 21 return reinterpret_cast<v8::internal::compiler::FastAccessorAssembler*>( | 21 return reinterpret_cast<v8::internal::compiler::FastAccessorAssembler*>( |
| 22 builder); | 22 builder); |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); | 122 FromApi(this)->CheckNotZeroOrJump(value_id, label_id); |
| 123 } | 123 } |
| 124 | 124 |
| 125 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( | 125 FastAccessorBuilder::ValueId FastAccessorBuilder::Call( |
| 126 v8::FunctionCallback callback, ValueId value_id) { | 126 v8::FunctionCallback callback, ValueId value_id) { |
| 127 return FromApi(this)->Call(callback, value_id); | 127 return FromApi(this)->Call(callback, value_id); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace experimental | 130 } // namespace experimental |
| 131 } // namespace v8 | 131 } // namespace v8 |
| OLD | NEW |