OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return representation().IsDouble() ? kDoubleSize / kPointerSize : 1; | 68 return representation().IsDouble() ? kDoubleSize / kPointerSize : 1; |
69 } | 69 } |
70 | 70 |
71 TYPE_CHECKER(BreakPointInfo, TUPLE2_TYPE) | 71 TYPE_CHECKER(BreakPointInfo, TUPLE2_TYPE) |
72 TYPE_CHECKER(ByteArray, BYTE_ARRAY_TYPE) | 72 TYPE_CHECKER(ByteArray, BYTE_ARRAY_TYPE) |
73 TYPE_CHECKER(BytecodeArray, BYTECODE_ARRAY_TYPE) | 73 TYPE_CHECKER(BytecodeArray, BYTECODE_ARRAY_TYPE) |
74 TYPE_CHECKER(CallHandlerInfo, TUPLE2_TYPE) | 74 TYPE_CHECKER(CallHandlerInfo, TUPLE2_TYPE) |
75 TYPE_CHECKER(Cell, CELL_TYPE) | 75 TYPE_CHECKER(Cell, CELL_TYPE) |
76 TYPE_CHECKER(Code, CODE_TYPE) | 76 TYPE_CHECKER(Code, CODE_TYPE) |
77 TYPE_CHECKER(ConstantElementsPair, TUPLE2_TYPE) | 77 TYPE_CHECKER(ConstantElementsPair, TUPLE2_TYPE) |
| 78 TYPE_CHECKER(CoverageInfo, FIXED_ARRAY_TYPE) |
78 TYPE_CHECKER(FixedDoubleArray, FIXED_DOUBLE_ARRAY_TYPE) | 79 TYPE_CHECKER(FixedDoubleArray, FIXED_DOUBLE_ARRAY_TYPE) |
79 TYPE_CHECKER(Foreign, FOREIGN_TYPE) | 80 TYPE_CHECKER(Foreign, FOREIGN_TYPE) |
80 TYPE_CHECKER(FreeSpace, FREE_SPACE_TYPE) | 81 TYPE_CHECKER(FreeSpace, FREE_SPACE_TYPE) |
81 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) | 82 TYPE_CHECKER(HeapNumber, HEAP_NUMBER_TYPE) |
82 TYPE_CHECKER(JSArgumentsObject, JS_ARGUMENTS_TYPE) | 83 TYPE_CHECKER(JSArgumentsObject, JS_ARGUMENTS_TYPE) |
83 TYPE_CHECKER(JSArray, JS_ARRAY_TYPE) | 84 TYPE_CHECKER(JSArray, JS_ARRAY_TYPE) |
84 TYPE_CHECKER(JSArrayBuffer, JS_ARRAY_BUFFER_TYPE) | 85 TYPE_CHECKER(JSArrayBuffer, JS_ARRAY_BUFFER_TYPE) |
85 TYPE_CHECKER(JSAsyncGeneratorObject, JS_ASYNC_GENERATOR_OBJECT_TYPE) | 86 TYPE_CHECKER(JSAsyncGeneratorObject, JS_ASYNC_GENERATOR_OBJECT_TYPE) |
86 TYPE_CHECKER(JSBoundFunction, JS_BOUND_FUNCTION_TYPE) | 87 TYPE_CHECKER(JSBoundFunction, JS_BOUND_FUNCTION_TYPE) |
87 TYPE_CHECKER(JSContextExtensionObject, JS_CONTEXT_EXTENSION_OBJECT_TYPE) | 88 TYPE_CHECKER(JSContextExtensionObject, JS_CONTEXT_EXTENSION_OBJECT_TYPE) |
(...skipping 7347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7435 | 7436 |
7436 ACCESSORS(JSStringIterator, string, String, kStringOffset) | 7437 ACCESSORS(JSStringIterator, string, String, kStringOffset) |
7437 SMI_ACCESSORS(JSStringIterator, index, kNextIndexOffset) | 7438 SMI_ACCESSORS(JSStringIterator, index, kNextIndexOffset) |
7438 | 7439 |
7439 } // namespace internal | 7440 } // namespace internal |
7440 } // namespace v8 | 7441 } // namespace v8 |
7441 | 7442 |
7442 #include "src/objects/object-macros-undef.h" | 7443 #include "src/objects/object-macros-undef.h" |
7443 | 7444 |
7444 #endif // V8_OBJECTS_INL_H_ | 7445 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |