| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 bool Object::IsDictionary() { | 307 bool Object::IsDictionary() { |
| 308 return IsHashTable() && this != Heap::symbol_table(); | 308 return IsHashTable() && this != Heap::symbol_table(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 | 311 |
| 312 bool Object::IsSymbolTable() { | 312 bool Object::IsSymbolTable() { |
| 313 return IsHashTable() && this == Heap::symbol_table(); | 313 return IsHashTable() && this == Heap::symbol_table(); |
| 314 } | 314 } |
| 315 | 315 |
| 316 | 316 |
| 317 bool Object::IsEvalCache() { | 317 bool Object::IsCompilationCacheTable() { |
| 318 return IsHashTable() && | 318 return IsHashTable(); |
| 319 (this == Heap::eval_cache_global() || | |
| 320 this == Heap::eval_cache_non_global()); | |
| 321 } | 319 } |
| 322 | 320 |
| 323 | 321 |
| 324 bool Object::IsPrimitive() { | 322 bool Object::IsPrimitive() { |
| 325 return IsOddball() || IsNumber() || IsString(); | 323 return IsOddball() || IsNumber() || IsString(); |
| 326 } | 324 } |
| 327 | 325 |
| 328 | 326 |
| 329 bool Object::IsGlobalObject() { | 327 bool Object::IsGlobalObject() { |
| 330 return IsHeapObject() && | 328 return IsHeapObject() && |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 | 1087 |
| 1090 | 1088 |
| 1091 // ------------------------------------ | 1089 // ------------------------------------ |
| 1092 // Cast operations | 1090 // Cast operations |
| 1093 | 1091 |
| 1094 | 1092 |
| 1095 CAST_ACCESSOR(FixedArray) | 1093 CAST_ACCESSOR(FixedArray) |
| 1096 CAST_ACCESSOR(DescriptorArray) | 1094 CAST_ACCESSOR(DescriptorArray) |
| 1097 CAST_ACCESSOR(Dictionary) | 1095 CAST_ACCESSOR(Dictionary) |
| 1098 CAST_ACCESSOR(SymbolTable) | 1096 CAST_ACCESSOR(SymbolTable) |
| 1099 CAST_ACCESSOR(EvalCache) | 1097 CAST_ACCESSOR(CompilationCacheTable) |
| 1100 CAST_ACCESSOR(String) | 1098 CAST_ACCESSOR(String) |
| 1101 CAST_ACCESSOR(SeqString) | 1099 CAST_ACCESSOR(SeqString) |
| 1102 CAST_ACCESSOR(AsciiString) | 1100 CAST_ACCESSOR(AsciiString) |
| 1103 CAST_ACCESSOR(TwoByteString) | 1101 CAST_ACCESSOR(TwoByteString) |
| 1104 CAST_ACCESSOR(ConsString) | 1102 CAST_ACCESSOR(ConsString) |
| 1105 CAST_ACCESSOR(SlicedString) | 1103 CAST_ACCESSOR(SlicedString) |
| 1106 CAST_ACCESSOR(ExternalString) | 1104 CAST_ACCESSOR(ExternalString) |
| 1107 CAST_ACCESSOR(ExternalAsciiString) | 1105 CAST_ACCESSOR(ExternalAsciiString) |
| 1108 CAST_ACCESSOR(ExternalTwoByteString) | 1106 CAST_ACCESSOR(ExternalTwoByteString) |
| 1109 CAST_ACCESSOR(JSObject) | 1107 CAST_ACCESSOR(JSObject) |
| (...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2121 #undef WRITE_INT_FIELD | 2119 #undef WRITE_INT_FIELD |
| 2122 #undef READ_SHORT_FIELD | 2120 #undef READ_SHORT_FIELD |
| 2123 #undef WRITE_SHORT_FIELD | 2121 #undef WRITE_SHORT_FIELD |
| 2124 #undef READ_BYTE_FIELD | 2122 #undef READ_BYTE_FIELD |
| 2125 #undef WRITE_BYTE_FIELD | 2123 #undef WRITE_BYTE_FIELD |
| 2126 | 2124 |
| 2127 | 2125 |
| 2128 } } // namespace v8::internal | 2126 } } // namespace v8::internal |
| 2129 | 2127 |
| 2130 #endif // V8_OBJECTS_INL_H_ | 2128 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |