| 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 6166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6177 // [debug info]: Debug information. | 6177 // [debug info]: Debug information. |
| 6178 DECL_ACCESSORS(debug_info, Object) | 6178 DECL_ACCESSORS(debug_info, Object) |
| 6179 | 6179 |
| 6180 // [inferred name]: Name inferred from variable or property | 6180 // [inferred name]: Name inferred from variable or property |
| 6181 // assignment of this function. Used to facilitate debugging and | 6181 // assignment of this function. Used to facilitate debugging and |
| 6182 // profiling of JavaScript code written in OO style, where almost | 6182 // profiling of JavaScript code written in OO style, where almost |
| 6183 // all functions are anonymous but are assigned to object | 6183 // all functions are anonymous but are assigned to object |
| 6184 // properties. | 6184 // properties. |
| 6185 DECL_ACCESSORS(inferred_name, String) | 6185 DECL_ACCESSORS(inferred_name, String) |
| 6186 | 6186 |
| 6187 DECL_ACCESSORS(bailout_reason, String) |
| 6188 |
| 6187 // The function's name if it is non-empty, otherwise the inferred name. | 6189 // The function's name if it is non-empty, otherwise the inferred name. |
| 6188 String* DebugName(); | 6190 String* DebugName(); |
| 6189 | 6191 |
| 6190 // Position of the 'function' token in the script source. | 6192 // Position of the 'function' token in the script source. |
| 6191 inline int function_token_position(); | 6193 inline int function_token_position(); |
| 6192 inline void set_function_token_position(int function_token_position); | 6194 inline void set_function_token_position(int function_token_position); |
| 6193 | 6195 |
| 6194 // Position of this function in the script source. | 6196 // Position of this function in the script source. |
| 6195 inline int start_position(); | 6197 inline int start_position(); |
| 6196 inline void set_start_position(int start_position); | 6198 inline void set_start_position(int start_position); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6372 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; | 6374 static const int kOptimizedCodeMapOffset = kCodeOffset + kPointerSize; |
| 6373 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; | 6375 static const int kScopeInfoOffset = kOptimizedCodeMapOffset + kPointerSize; |
| 6374 static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize; | 6376 static const int kConstructStubOffset = kScopeInfoOffset + kPointerSize; |
| 6375 static const int kInstanceClassNameOffset = | 6377 static const int kInstanceClassNameOffset = |
| 6376 kConstructStubOffset + kPointerSize; | 6378 kConstructStubOffset + kPointerSize; |
| 6377 static const int kFunctionDataOffset = | 6379 static const int kFunctionDataOffset = |
| 6378 kInstanceClassNameOffset + kPointerSize; | 6380 kInstanceClassNameOffset + kPointerSize; |
| 6379 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; | 6381 static const int kScriptOffset = kFunctionDataOffset + kPointerSize; |
| 6380 static const int kDebugInfoOffset = kScriptOffset + kPointerSize; | 6382 static const int kDebugInfoOffset = kScriptOffset + kPointerSize; |
| 6381 static const int kInferredNameOffset = kDebugInfoOffset + kPointerSize; | 6383 static const int kInferredNameOffset = kDebugInfoOffset + kPointerSize; |
| 6382 static const int kInitialMapOffset = | 6384 static const int kBailoutReasonOffset = kInferredNameOffset + kPointerSize; |
| 6383 kInferredNameOffset + kPointerSize; | 6385 static const int kInitialMapOffset = kBailoutReasonOffset + kPointerSize; |
| 6384 // ast_node_count is a Smi field. It could be grouped with another Smi field | 6386 // ast_node_count is a Smi field. It could be grouped with another Smi field |
| 6385 // into a PSEUDO_SMI_ACCESSORS pair (on x64), if one becomes available. | 6387 // into a PSEUDO_SMI_ACCESSORS pair (on x64), if one becomes available. |
| 6386 static const int kAstNodeCountOffset = | 6388 static const int kAstNodeCountOffset = |
| 6387 kInitialMapOffset + kPointerSize; | 6389 kInitialMapOffset + kPointerSize; |
| 6388 #if V8_HOST_ARCH_32_BIT | 6390 #if V8_HOST_ARCH_32_BIT |
| 6389 // Smi fields. | 6391 // Smi fields. |
| 6390 static const int kLengthOffset = | 6392 static const int kLengthOffset = |
| 6391 kAstNodeCountOffset + kPointerSize; | 6393 kAstNodeCountOffset + kPointerSize; |
| 6392 static const int kFormalParameterCountOffset = kLengthOffset + kPointerSize; | 6394 static const int kFormalParameterCountOffset = kLengthOffset + kPointerSize; |
| 6393 static const int kExpectedNofPropertiesOffset = | 6395 static const int kExpectedNofPropertiesOffset = |
| (...skipping 3505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9899 } else { | 9901 } else { |
| 9900 value &= ~(1 << bit_position); | 9902 value &= ~(1 << bit_position); |
| 9901 } | 9903 } |
| 9902 return value; | 9904 return value; |
| 9903 } | 9905 } |
| 9904 }; | 9906 }; |
| 9905 | 9907 |
| 9906 } } // namespace v8::internal | 9908 } } // namespace v8::internal |
| 9907 | 9909 |
| 9908 #endif // V8_OBJECTS_H_ | 9910 #endif // V8_OBJECTS_H_ |
| OLD | NEW |