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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 enum Mode { | 328 enum Mode { |
329 BASE, | 329 BASE, |
330 OPTIMIZE, | 330 OPTIMIZE, |
331 NONOPT, | 331 NONOPT, |
332 STUB | 332 STUB |
333 }; | 333 }; |
334 | 334 |
335 void Initialize(Isolate* isolate, Mode mode, Zone* zone); | 335 void Initialize(Isolate* isolate, Mode mode, Zone* zone); |
336 | 336 |
337 void SetMode(Mode mode) { | 337 void SetMode(Mode mode) { |
338 ASSERT(V8::UseCrankshaft()); | 338 ASSERT(isolate()->use_crankshaft()); |
339 mode_ = mode; | 339 mode_ = mode; |
340 } | 340 } |
341 | 341 |
342 // Flags using template class BitField<type, start, length>. All are | 342 // Flags using template class BitField<type, start, length>. All are |
343 // false by default. | 343 // false by default. |
344 // | 344 // |
345 // Compilation is either eager or lazy. | 345 // Compilation is either eager or lazy. |
346 class IsLazy: public BitField<bool, 0, 1> {}; | 346 class IsLazy: public BitField<bool, 0, 1> {}; |
347 // Flags that can be set for eager compilation. | 347 // Flags that can be set for eager compilation. |
348 class IsEval: public BitField<bool, 1, 1> {}; | 348 class IsEval: public BitField<bool, 1, 1> {}; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 unsigned info_zone_start_allocation_size_; | 645 unsigned info_zone_start_allocation_size_; |
646 ElapsedTimer timer_; | 646 ElapsedTimer timer_; |
647 | 647 |
648 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 648 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
649 }; | 649 }; |
650 | 650 |
651 | 651 |
652 } } // namespace v8::internal | 652 } } // namespace v8::internal |
653 | 653 |
654 #endif // V8_COMPILER_H_ | 654 #endif // V8_COMPILER_H_ |
OLD | NEW |