OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 private: | 43 private: |
44 Isolate* isolate_; | 44 Isolate* isolate_; |
45 StateTag previous_tag_; | 45 StateTag previous_tag_; |
46 }; | 46 }; |
47 | 47 |
48 | 48 |
49 class ExternalCallbackScope BASE_EMBEDDED { | 49 class ExternalCallbackScope BASE_EMBEDDED { |
50 public: | 50 public: |
51 inline ExternalCallbackScope(Isolate* isolate, Address callback); | 51 inline ExternalCallbackScope(Isolate* isolate, Address callback); |
52 inline ~ExternalCallbackScope(); | 52 inline ~ExternalCallbackScope(); |
| 53 Address callback() { return callback_; } |
| 54 Address* callback_address() { return &callback_; } |
| 55 ExternalCallbackScope* previous() { return previous_scope_; } |
| 56 inline Address scope_address(); |
| 57 |
53 private: | 58 private: |
54 Isolate* isolate_; | 59 Isolate* isolate_; |
55 Address previous_callback_; | 60 Address callback_; |
| 61 ExternalCallbackScope* previous_scope_; |
| 62 #ifdef USE_SIMULATOR |
| 63 Address scope_address_; |
| 64 #endif |
56 }; | 65 }; |
57 | 66 |
58 } } // namespace v8::internal | 67 } } // namespace v8::internal |
59 | 68 |
60 | 69 |
61 #endif // V8_VM_STATE_H_ | 70 #endif // V8_VM_STATE_H_ |
OLD | NEW |