| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 static const int kUC16AlphabetSize = 256; // See StringSearchBase. | 740 static const int kUC16AlphabetSize = 256; // See StringSearchBase. |
| 741 static const int kBMMaxShift = 250; // See StringSearchBase. | 741 static const int kBMMaxShift = 250; // See StringSearchBase. |
| 742 | 742 |
| 743 // Accessors. | 743 // Accessors. |
| 744 #define GLOBAL_ACCESSOR(type, name, initialvalue) \ | 744 #define GLOBAL_ACCESSOR(type, name, initialvalue) \ |
| 745 inline type name() const { \ | 745 inline type name() const { \ |
| 746 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ | 746 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ |
| 747 return name##_; \ | 747 return name##_; \ |
| 748 } \ | 748 } \ |
| 749 inline void set_##name(type value) { \ | 749 inline void set_##name(type value) { \ |
| 750 ASSERT_EQ(OFFSET_OF(Isolate, name##_), name##_debug_offset_); \ | 750 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ |
| 751 name##_ = value; \ | 751 name##_ = value; \ |
| 752 } | 752 } |
| 753 ISOLATE_INIT_LIST(GLOBAL_ACCESSOR) | 753 ISOLATE_INIT_LIST(GLOBAL_ACCESSOR) |
| 754 #undef GLOBAL_ACCESSOR | 754 #undef GLOBAL_ACCESSOR |
| 755 | 755 |
| 756 #define GLOBAL_ARRAY_ACCESSOR(type, name, length) \ | 756 #define GLOBAL_ARRAY_ACCESSOR(type, name, length) \ |
| 757 inline type* name() { \ | 757 inline type* name() { \ |
| 758 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ | 758 ASSERT(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \ |
| 759 return &(name##_)[0]; \ | 759 return &(name##_)[0]; \ |
| 760 } | 760 } |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 | 1321 |
| 1322 // Mark the global context with out of memory. | 1322 // Mark the global context with out of memory. |
| 1323 inline void Context::mark_out_of_memory() { | 1323 inline void Context::mark_out_of_memory() { |
| 1324 global_context()->set_out_of_memory(HEAP->true_value()); | 1324 global_context()->set_out_of_memory(HEAP->true_value()); |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 | 1327 |
| 1328 } } // namespace v8::internal | 1328 } } // namespace v8::internal |
| 1329 | 1329 |
| 1330 #endif // V8_ISOLATE_H_ | 1330 #endif // V8_ISOLATE_H_ |
| OLD | NEW |