| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_H_ | 5 #ifndef V8_COMPILER_H_ |
| 6 #define V8_COMPILER_H_ | 6 #define V8_COMPILER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 inline void AddNoFrameRange(int from, int to) { | 330 inline void AddNoFrameRange(int from, int to) { |
| 331 if (no_frame_ranges_) no_frame_ranges_->Add(OffsetRange(from, to)); | 331 if (no_frame_ranges_) no_frame_ranges_->Add(OffsetRange(from, to)); |
| 332 } | 332 } |
| 333 | 333 |
| 334 List<OffsetRange>* ReleaseNoFrameRanges() { | 334 List<OffsetRange>* ReleaseNoFrameRanges() { |
| 335 List<OffsetRange>* result = no_frame_ranges_; | 335 List<OffsetRange>* result = no_frame_ranges_; |
| 336 no_frame_ranges_ = NULL; | 336 no_frame_ranges_ = NULL; |
| 337 return result; | 337 return result; |
| 338 } | 338 } |
| 339 | 339 |
| 340 List<InlinedFunctionInfo>* inlined_function_infos() { | 340 std::vector<InlinedFunctionInfo>* inlined_function_infos() { |
| 341 return inlined_function_infos_; | 341 return inlined_function_infos_; |
| 342 } | 342 } |
| 343 int TraceInlinedFunction(Handle<SharedFunctionInfo> shared, | 343 int TraceInlinedFunction(Handle<SharedFunctionInfo> shared, |
| 344 SourcePosition position, int pareint_id); | 344 SourcePosition position, int pareint_id); |
| 345 | 345 |
| 346 Handle<Foreign> object_wrapper() { | 346 Handle<Foreign> object_wrapper() { |
| 347 if (object_wrapper_.is_null()) { | 347 if (object_wrapper_.is_null()) { |
| 348 object_wrapper_ = | 348 object_wrapper_ = |
| 349 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this)); | 349 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this)); |
| 350 } | 350 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 DeferredHandles* deferred_handles_; | 442 DeferredHandles* deferred_handles_; |
| 443 | 443 |
| 444 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount]; | 444 ZoneList<Handle<HeapObject> >* dependencies_[DependentCode::kGroupCount]; |
| 445 | 445 |
| 446 BailoutReason bailout_reason_; | 446 BailoutReason bailout_reason_; |
| 447 | 447 |
| 448 int prologue_offset_; | 448 int prologue_offset_; |
| 449 | 449 |
| 450 List<OffsetRange>* no_frame_ranges_; | 450 List<OffsetRange>* no_frame_ranges_; |
| 451 List<InlinedFunctionInfo>* inlined_function_infos_; | 451 std::vector<InlinedFunctionInfo>* inlined_function_infos_; |
| 452 | 452 |
| 453 // A copy of shared_info()->opt_count() to avoid handle deref | 453 // A copy of shared_info()->opt_count() to avoid handle deref |
| 454 // during graph optimization. | 454 // during graph optimization. |
| 455 int opt_count_; | 455 int opt_count_; |
| 456 | 456 |
| 457 // Number of parameters used for compilation of stubs that require arguments. | 457 // Number of parameters used for compilation of stubs that require arguments. |
| 458 int parameter_count_; | 458 int parameter_count_; |
| 459 | 459 |
| 460 Handle<Foreign> object_wrapper_; | 460 Handle<Foreign> object_wrapper_; |
| 461 | 461 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 Zone zone_; | 689 Zone zone_; |
| 690 size_t info_zone_start_allocation_size_; | 690 size_t info_zone_start_allocation_size_; |
| 691 base::ElapsedTimer timer_; | 691 base::ElapsedTimer timer_; |
| 692 | 692 |
| 693 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 693 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 694 }; | 694 }; |
| 695 | 695 |
| 696 } } // namespace v8::internal | 696 } } // namespace v8::internal |
| 697 | 697 |
| 698 #endif // V8_COMPILER_H_ | 698 #endif // V8_COMPILER_H_ |
| OLD | NEW |