| 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_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
| 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" | 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 private: | 344 private: |
| 345 LCodeGen* codegen_; | 345 LCodeGen* codegen_; |
| 346 }; | 346 }; |
| 347 | 347 |
| 348 friend class LDeferredCode; | 348 friend class LDeferredCode; |
| 349 friend class LEnvironment; | 349 friend class LEnvironment; |
| 350 friend class SafepointGenerator; | 350 friend class SafepointGenerator; |
| 351 DISALLOW_COPY_AND_ASSIGN(LCodeGen); | 351 DISALLOW_COPY_AND_ASSIGN(LCodeGen); |
| 352 }; | 352 }; |
| 353 | 353 |
| 354 | |
| 355 class LDeferredCode : public ZoneObject { | 354 class LDeferredCode : public ZoneObject { |
| 356 public: | 355 public: |
| 357 explicit LDeferredCode(LCodeGen* codegen) | 356 explicit LDeferredCode(LCodeGen* codegen) |
| 358 : codegen_(codegen), | 357 : codegen_(codegen), |
| 359 external_exit_(NULL), | 358 external_exit_(NULL), |
| 360 instruction_index_(codegen->current_instruction_) { | 359 instruction_index_(codegen->current_instruction_) { |
| 361 codegen->AddDeferredCode(this); | 360 codegen->AddDeferredCode(this); |
| 362 } | 361 } |
| 363 | 362 |
| 364 virtual ~LDeferredCode() {} | 363 virtual ~LDeferredCode() {} |
| (...skipping 16 matching lines...) Expand all Loading... |
| 381 Label exit_; | 380 Label exit_; |
| 382 Label* external_exit_; | 381 Label* external_exit_; |
| 383 Label done_; | 382 Label done_; |
| 384 int instruction_index_; | 383 int instruction_index_; |
| 385 }; | 384 }; |
| 386 | 385 |
| 387 } // namespace internal | 386 } // namespace internal |
| 388 } // namespace v8 | 387 } // namespace v8 |
| 389 | 388 |
| 390 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 389 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |