OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1897 | 1897 |
1898 RawObject** from() { | 1898 RawObject** from() { |
1899 return reinterpret_cast<RawObject**>(&ptr()->num_bracket_expressions_); | 1899 return reinterpret_cast<RawObject**>(&ptr()->num_bracket_expressions_); |
1900 } | 1900 } |
1901 RawSmi* num_bracket_expressions_; | 1901 RawSmi* num_bracket_expressions_; |
1902 RawString* pattern_; // Pattern to be used for matching. | 1902 RawString* pattern_; // Pattern to be used for matching. |
1903 RawFunction* one_byte_function_; | 1903 RawFunction* one_byte_function_; |
1904 RawFunction* two_byte_function_; | 1904 RawFunction* two_byte_function_; |
1905 RawFunction* external_one_byte_function_; | 1905 RawFunction* external_one_byte_function_; |
1906 RawFunction* external_two_byte_function_; | 1906 RawFunction* external_two_byte_function_; |
| 1907 RawTypedData* one_byte_bytecode_; |
| 1908 RawTypedData* two_byte_bytecode_; |
1907 RawObject** to() { | 1909 RawObject** to() { |
1908 return reinterpret_cast<RawObject**>(&ptr()->external_two_byte_function_); | 1910 return reinterpret_cast<RawObject**>(&ptr()->two_byte_bytecode_); |
1909 } | 1911 } |
1910 | 1912 |
| 1913 intptr_t num_registers_; |
| 1914 |
1911 // A bitfield with two fields: | 1915 // A bitfield with two fields: |
1912 // type: Uninitialized, simple or complex. | 1916 // type: Uninitialized, simple or complex. |
1913 // flags: Represents global/local, case insensitive, multiline. | 1917 // flags: Represents global/local, case insensitive, multiline. |
1914 int8_t type_flags_; | 1918 int8_t type_flags_; |
1915 }; | 1919 }; |
1916 | 1920 |
1917 | 1921 |
1918 class RawWeakProperty : public RawInstance { | 1922 class RawWeakProperty : public RawInstance { |
1919 RAW_HEAP_OBJECT_IMPLEMENTATION(WeakProperty); | 1923 RAW_HEAP_OBJECT_IMPLEMENTATION(WeakProperty); |
1920 | 1924 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2187 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2184 kTypedDataInt8ArrayViewCid + 15); | 2188 kTypedDataInt8ArrayViewCid + 15); |
2185 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2189 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2186 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2190 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2187 return (kNullCid - kTypedDataInt8ArrayCid); | 2191 return (kNullCid - kTypedDataInt8ArrayCid); |
2188 } | 2192 } |
2189 | 2193 |
2190 } // namespace dart | 2194 } // namespace dart |
2191 | 2195 |
2192 #endif // VM_RAW_OBJECT_H_ | 2196 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |