| 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 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 // [line_ends]: array of line ends positions | 2569 // [line_ends]: array of line ends positions |
| 2570 DECL_ACCESSORS(line_ends, Object) | 2570 DECL_ACCESSORS(line_ends, Object) |
| 2571 | 2571 |
| 2572 static inline Script* cast(Object* obj); | 2572 static inline Script* cast(Object* obj); |
| 2573 | 2573 |
| 2574 #ifdef DEBUG | 2574 #ifdef DEBUG |
| 2575 void ScriptPrint(); | 2575 void ScriptPrint(); |
| 2576 void ScriptVerify(); | 2576 void ScriptVerify(); |
| 2577 #endif | 2577 #endif |
| 2578 | 2578 |
| 2579 void InitLineEnds(); | |
| 2580 int GetLineNumber(int code_position); | |
| 2581 | |
| 2582 static const int kSourceOffset = HeapObject::kHeaderSize; | 2579 static const int kSourceOffset = HeapObject::kHeaderSize; |
| 2583 static const int kNameOffset = kSourceOffset + kPointerSize; | 2580 static const int kNameOffset = kSourceOffset + kPointerSize; |
| 2584 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 2581 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
| 2585 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 2582 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
| 2586 static const int kWrapperOffset = kColumnOffsetOffset + kPointerSize; | 2583 static const int kWrapperOffset = kColumnOffsetOffset + kPointerSize; |
| 2587 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 2584 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
| 2588 static const int kLineEndsOffset = kTypeOffset + kPointerSize; | 2585 static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
| 2589 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 2586 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
| 2590 static const int kSize = kIdOffset + kPointerSize; | 2587 static const int kSize = kIdOffset + kPointerSize; |
| 2591 | 2588 |
| (...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4268 } else { | 4265 } else { |
| 4269 value &= ~(1 << bit_position); | 4266 value &= ~(1 << bit_position); |
| 4270 } | 4267 } |
| 4271 return value; | 4268 return value; |
| 4272 } | 4269 } |
| 4273 }; | 4270 }; |
| 4274 | 4271 |
| 4275 } } // namespace v8::internal | 4272 } } // namespace v8::internal |
| 4276 | 4273 |
| 4277 #endif // V8_OBJECTS_H_ | 4274 #endif // V8_OBJECTS_H_ |
| OLD | NEW |