| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 EmptyExternalUint8ClampedArray) \ | 157 EmptyExternalUint8ClampedArray) \ |
| 158 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \ | 158 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \ |
| 159 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \ | 159 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \ |
| 160 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \ | 160 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \ |
| 161 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \ | 161 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \ |
| 162 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \ | 162 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \ |
| 163 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \ | 163 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \ |
| 164 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \ | 164 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \ |
| 165 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \ | 165 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \ |
| 166 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \ | 166 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \ |
| 167 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ | 167 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ |
| 168 V(Map, function_context_map, FunctionContextMap) \ | 168 V(Map, function_context_map, FunctionContextMap) \ |
| 169 V(Map, catch_context_map, CatchContextMap) \ | 169 V(Map, catch_context_map, CatchContextMap) \ |
| 170 V(Map, with_context_map, WithContextMap) \ | 170 V(Map, with_context_map, WithContextMap) \ |
| 171 V(Map, block_context_map, BlockContextMap) \ | 171 V(Map, block_context_map, BlockContextMap) \ |
| 172 V(Map, module_context_map, ModuleContextMap) \ | 172 V(Map, module_context_map, ModuleContextMap) \ |
| 173 V(Map, global_context_map, GlobalContextMap) \ | 173 V(Map, global_context_map, GlobalContextMap) \ |
| 174 V(Map, oddball_map, OddballMap) \ | 174 V(Map, oddball_map, OddballMap) \ |
| 175 V(Map, message_object_map, JSMessageObjectMap) \ | 175 V(Map, message_object_map, JSMessageObjectMap) \ |
| 176 V(Map, foreign_map, ForeignMap) \ | 176 V(Map, foreign_map, ForeignMap) \ |
| 177 V(HeapNumber, nan_value, NanValue) \ | 177 V(HeapNumber, nan_value, NanValue) \ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 V(fixed_double_array_map) \ | 240 V(fixed_double_array_map) \ |
| 241 V(constant_pool_array_map) \ | 241 V(constant_pool_array_map) \ |
| 242 V(no_interceptor_result_sentinel) \ | 242 V(no_interceptor_result_sentinel) \ |
| 243 V(hash_table_map) \ | 243 V(hash_table_map) \ |
| 244 V(empty_fixed_array) \ | 244 V(empty_fixed_array) \ |
| 245 V(empty_byte_array) \ | 245 V(empty_byte_array) \ |
| 246 V(empty_descriptor_array) \ | 246 V(empty_descriptor_array) \ |
| 247 V(empty_constant_pool_array) \ | 247 V(empty_constant_pool_array) \ |
| 248 V(arguments_marker) \ | 248 V(arguments_marker) \ |
| 249 V(symbol_map) \ | 249 V(symbol_map) \ |
| 250 V(non_strict_arguments_elements_map) \ | 250 V(sloppy_arguments_elements_map) \ |
| 251 V(function_context_map) \ | 251 V(function_context_map) \ |
| 252 V(catch_context_map) \ | 252 V(catch_context_map) \ |
| 253 V(with_context_map) \ | 253 V(with_context_map) \ |
| 254 V(block_context_map) \ | 254 V(block_context_map) \ |
| 255 V(module_context_map) \ | 255 V(module_context_map) \ |
| 256 V(global_context_map) \ | 256 V(global_context_map) \ |
| 257 V(oddball_map) \ | 257 V(oddball_map) \ |
| 258 V(message_object_map) \ | 258 V(message_object_map) \ |
| 259 V(foreign_map) \ | 259 V(foreign_map) \ |
| 260 V(neander_map) | 260 V(neander_map) |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 PretenureFlag pretenure = TENURED); | 1076 PretenureFlag pretenure = TENURED); |
| 1077 | 1077 |
| 1078 // Arguments object size. | 1078 // Arguments object size. |
| 1079 static const int kArgumentsObjectSize = | 1079 static const int kArgumentsObjectSize = |
| 1080 JSObject::kHeaderSize + 2 * kPointerSize; | 1080 JSObject::kHeaderSize + 2 * kPointerSize; |
| 1081 // Strict mode arguments has no callee so it is smaller. | 1081 // Strict mode arguments has no callee so it is smaller. |
| 1082 static const int kArgumentsObjectSizeStrict = | 1082 static const int kArgumentsObjectSizeStrict = |
| 1083 JSObject::kHeaderSize + 1 * kPointerSize; | 1083 JSObject::kHeaderSize + 1 * kPointerSize; |
| 1084 // Indicies for direct access into argument objects. | 1084 // Indicies for direct access into argument objects. |
| 1085 static const int kArgumentsLengthIndex = 0; | 1085 static const int kArgumentsLengthIndex = 0; |
| 1086 // callee is only valid in non-strict mode. | 1086 // callee is only valid in sloppy mode. |
| 1087 static const int kArgumentsCalleeIndex = 1; | 1087 static const int kArgumentsCalleeIndex = 1; |
| 1088 | 1088 |
| 1089 // Allocates an arguments object - optionally with an elements array. | 1089 // Allocates an arguments object - optionally with an elements array. |
| 1090 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 1090 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 1091 // failed. | 1091 // failed. |
| 1092 // Please note this does not perform a garbage collection. | 1092 // Please note this does not perform a garbage collection. |
| 1093 MUST_USE_RESULT MaybeObject* AllocateArgumentsObject( | 1093 MUST_USE_RESULT MaybeObject* AllocateArgumentsObject( |
| 1094 Object* callee, int length); | 1094 Object* callee, int length); |
| 1095 | 1095 |
| 1096 // Same as NewNumberFromDouble, but may return a preallocated/immutable | 1096 // Same as NewNumberFromDouble, but may return a preallocated/immutable |
| (...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3114 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3114 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3115 | 3115 |
| 3116 private: | 3116 private: |
| 3117 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3117 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3118 }; | 3118 }; |
| 3119 #endif // DEBUG | 3119 #endif // DEBUG |
| 3120 | 3120 |
| 3121 } } // namespace v8::internal | 3121 } } // namespace v8::internal |
| 3122 | 3122 |
| 3123 #endif // V8_HEAP_H_ | 3123 #endif // V8_HEAP_H_ |
| OLD | NEW |