| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_CODEGEN_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/crankshaft/lithium-codegen.h" | 9 #include "src/crankshaft/lithium-codegen.h" |
| 10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h" | 10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 private: | 313 private: |
| 314 LCodeGen* codegen_; | 314 LCodeGen* codegen_; |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 friend class LDeferredCode; | 317 friend class LDeferredCode; |
| 318 friend class LEnvironment; | 318 friend class LEnvironment; |
| 319 friend class SafepointGenerator; | 319 friend class SafepointGenerator; |
| 320 DISALLOW_COPY_AND_ASSIGN(LCodeGen); | 320 DISALLOW_COPY_AND_ASSIGN(LCodeGen); |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 | |
| 324 class LDeferredCode : public ZoneObject { | 323 class LDeferredCode : public ZoneObject { |
| 325 public: | 324 public: |
| 326 explicit LDeferredCode(LCodeGen* codegen) | 325 explicit LDeferredCode(LCodeGen* codegen) |
| 327 : codegen_(codegen), | 326 : codegen_(codegen), |
| 328 external_exit_(NULL), | 327 external_exit_(NULL), |
| 329 instruction_index_(codegen->current_instruction_) { | 328 instruction_index_(codegen->current_instruction_) { |
| 330 codegen->AddDeferredCode(this); | 329 codegen->AddDeferredCode(this); |
| 331 } | 330 } |
| 332 | 331 |
| 333 virtual ~LDeferredCode() {} | 332 virtual ~LDeferredCode() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 347 LCodeGen* codegen_; | 346 LCodeGen* codegen_; |
| 348 Label entry_; | 347 Label entry_; |
| 349 Label exit_; | 348 Label exit_; |
| 350 Label* external_exit_; | 349 Label* external_exit_; |
| 351 int instruction_index_; | 350 int instruction_index_; |
| 352 }; | 351 }; |
| 353 } // namespace internal | 352 } // namespace internal |
| 354 } // namespace v8 | 353 } // namespace v8 |
| 355 | 354 |
| 356 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 355 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| OLD | NEW |