| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/arm64/lithium-arm64.h" | 8 #include "src/crankshaft/arm64/lithium-arm64.h" |
| 9 | 9 |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 private: | 394 private: |
| 395 LCodeGen* codegen_; | 395 LCodeGen* codegen_; |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 friend class LDeferredCode; | 398 friend class LDeferredCode; |
| 399 friend class SafepointGenerator; | 399 friend class SafepointGenerator; |
| 400 DISALLOW_COPY_AND_ASSIGN(LCodeGen); | 400 DISALLOW_COPY_AND_ASSIGN(LCodeGen); |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 | 403 class LDeferredCode : public ZoneObject { |
| 404 class LDeferredCode: public ZoneObject { | |
| 405 public: | 404 public: |
| 406 explicit LDeferredCode(LCodeGen* codegen) | 405 explicit LDeferredCode(LCodeGen* codegen) |
| 407 : codegen_(codegen), | 406 : codegen_(codegen), |
| 408 external_exit_(NULL), | 407 external_exit_(NULL), |
| 409 instruction_index_(codegen->current_instruction_) { | 408 instruction_index_(codegen->current_instruction_) { |
| 410 codegen->AddDeferredCode(this); | 409 codegen->AddDeferredCode(this); |
| 411 } | 410 } |
| 412 | 411 |
| 413 virtual ~LDeferredCode() { } | 412 virtual ~LDeferredCode() { } |
| 414 virtual void Generate() = 0; | 413 virtual void Generate() = 0; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 protected: | 451 protected: |
| 453 MacroAssembler* masm() const { return codegen_->masm(); } | 452 MacroAssembler* masm() const { return codegen_->masm(); } |
| 454 | 453 |
| 455 LCodeGen* codegen_; | 454 LCodeGen* codegen_; |
| 456 }; | 455 }; |
| 457 | 456 |
| 458 } // namespace internal | 457 } // namespace internal |
| 459 } // namespace v8 | 458 } // namespace v8 |
| 460 | 459 |
| 461 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ | 460 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ |
| OLD | NEW |