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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 public: | 302 public: |
303 EntryGenerator(MacroAssembler* masm, BailoutType type) | 303 EntryGenerator(MacroAssembler* masm, BailoutType type) |
304 : masm_(masm), type_(type) { } | 304 : masm_(masm), type_(type) { } |
305 virtual ~EntryGenerator() { } | 305 virtual ~EntryGenerator() { } |
306 | 306 |
307 void Generate(); | 307 void Generate(); |
308 | 308 |
309 protected: | 309 protected: |
310 MacroAssembler* masm() const { return masm_; } | 310 MacroAssembler* masm() const { return masm_; } |
311 BailoutType type() const { return type_; } | 311 BailoutType type() const { return type_; } |
| 312 Isolate* isolate() const { return masm_->isolate(); } |
312 | 313 |
313 virtual void GeneratePrologue() { } | 314 virtual void GeneratePrologue() { } |
314 | 315 |
315 private: | 316 private: |
316 MacroAssembler* masm_; | 317 MacroAssembler* masm_; |
317 Deoptimizer::BailoutType type_; | 318 Deoptimizer::BailoutType type_; |
318 }; | 319 }; |
319 | 320 |
320 class TableEntryGenerator : public EntryGenerator { | 321 class TableEntryGenerator : public EntryGenerator { |
321 public: | 322 public: |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 Object** expression_stack_; | 917 Object** expression_stack_; |
917 int source_position_; | 918 int source_position_; |
918 | 919 |
919 friend class Deoptimizer; | 920 friend class Deoptimizer; |
920 }; | 921 }; |
921 #endif | 922 #endif |
922 | 923 |
923 } } // namespace v8::internal | 924 } } // namespace v8::internal |
924 | 925 |
925 #endif // V8_DEOPTIMIZER_H_ | 926 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |