Chromium Code Reviews| 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 * This header contains a set of experimental V8 APIs. We hope these will | 6 * This header contains a set of experimental V8 APIs. We hope these will |
| 7 * become a part of standard V8, but they may also be removed if we deem the | 7 * become a part of standard V8, but they may also be removed if we deem the |
| 8 * experiment to not be successul. | 8 * experiment to not be successul. |
| 9 */ | 9 */ |
| 10 #ifndef V8_INCLUDE_V8_EXPERIMENTAL_H_ | 10 #ifndef V8_INCLUDE_V8_EXPERIMENTAL_H_ |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 size_t value_id; | 23 size_t value_id; |
| 24 }; | 24 }; |
| 25 struct LabelId { | 25 struct LabelId { |
| 26 size_t label_id; | 26 size_t label_id; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 static FastAccessorBuilder* New(Isolate* isolate); | 29 static FastAccessorBuilder* New(Isolate* isolate); |
| 30 | 30 |
| 31 ValueId IntegerConstant(int int_constant); | 31 ValueId IntegerConstant(int int_constant); |
| 32 ValueId GetReceiver(); | 32 ValueId GetReceiver(); |
| 33 // TODO(v8): deprecate this in favor of LoadEmbedderField | |
|
vogelheim
2017/03/13 09:33:01
Maybe; TODO(vogelheim)
(I need to either clean-up
| |
| 33 ValueId LoadInternalField(ValueId value_id, int field_no); | 34 ValueId LoadInternalField(ValueId value_id, int field_no); |
| 35 // TODO(v8): deprecate this in favor of LoadEmbedderFieldUnchecked | |
| 34 ValueId LoadInternalFieldUnchecked(ValueId value_id, int field_no); | 36 ValueId LoadInternalFieldUnchecked(ValueId value_id, int field_no); |
| 37 ValueId LoadEmbedderField(ValueId value_id, int field_no); | |
| 38 ValueId LoadEmbedderFieldUnchecked(ValueId value_id, int field_no); | |
| 35 ValueId LoadValue(ValueId value_id, int offset); | 39 ValueId LoadValue(ValueId value_id, int offset); |
| 36 ValueId LoadObject(ValueId value_id, int offset); | 40 ValueId LoadObject(ValueId value_id, int offset); |
| 37 ValueId ToSmi(ValueId value_id); | 41 ValueId ToSmi(ValueId value_id); |
| 38 | 42 |
| 39 void ReturnValue(ValueId value_id); | 43 void ReturnValue(ValueId value_id); |
| 40 void CheckFlagSetOrReturnNull(ValueId value_id, int mask); | 44 void CheckFlagSetOrReturnNull(ValueId value_id, int mask); |
| 41 void CheckNotZeroOrReturnNull(ValueId value_id); | 45 void CheckNotZeroOrReturnNull(ValueId value_id); |
| 42 LabelId MakeLabel(); | 46 LabelId MakeLabel(); |
| 43 void SetLabel(LabelId label_id); | 47 void SetLabel(LabelId label_id); |
| 44 void Goto(LabelId label_id); | 48 void Goto(LabelId label_id); |
| 45 void CheckNotZeroOrJump(ValueId value_id, LabelId label_id); | 49 void CheckNotZeroOrJump(ValueId value_id, LabelId label_id); |
| 46 ValueId Call(v8::FunctionCallback callback, ValueId value_id); | 50 ValueId Call(v8::FunctionCallback callback, ValueId value_id); |
| 47 | 51 |
| 48 private: | 52 private: |
| 49 FastAccessorBuilder() = delete; | 53 FastAccessorBuilder() = delete; |
| 50 FastAccessorBuilder(const FastAccessorBuilder&) = delete; | 54 FastAccessorBuilder(const FastAccessorBuilder&) = delete; |
| 51 ~FastAccessorBuilder() = delete; | 55 ~FastAccessorBuilder() = delete; |
| 52 void operator=(const FastAccessorBuilder&) = delete; | 56 void operator=(const FastAccessorBuilder&) = delete; |
| 53 }; | 57 }; |
| 54 | 58 |
| 55 } // namespace experimental | 59 } // namespace experimental |
| 56 } // namespace v8 | 60 } // namespace v8 |
| 57 | 61 |
| 58 #endif // V8_INCLUDE_V8_EXPERIMENTAL_H_ | 62 #endif // V8_INCLUDE_V8_EXPERIMENTAL_H_ |
| OLD | NEW |