• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This class does not use the generated verifier, so if you change anything
6// here, please also update DataHandlerVerify in objects-debug.cc.
7@abstract
8extern class DataHandler extends Struct {
9  // [smi_handler]: A Smi which encodes a handler or Code object (we still
10  // use code handlers for accessing lexical environment variables, but soon
11  // only smi handlers will remain). See LoadHandler and StoreHandler for
12  // details about encoding.
13  @if(V8_EXTERNAL_CODE_SPACE) smi_handler: Smi|CodeDataContainer;
14  @ifnot(V8_EXTERNAL_CODE_SPACE) smi_handler: Smi|Code;
15
16  // [validity_cell]: A validity Cell that guards prototype chain modifications.
17  validity_cell: Smi|Cell;
18
19  // Space for the following fields may or may not be allocated.
20  data1: MaybeObject;
21  data2: MaybeObject;
22  data3: MaybeObject;
23}
24