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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 V(ModByPowerOf2I) \ | 122 V(ModByPowerOf2I) \ |
123 V(ModI) \ | 123 V(ModI) \ |
124 V(MulI) \ | 124 V(MulI) \ |
125 V(NumberTagD) \ | 125 V(NumberTagD) \ |
126 V(NumberTagI) \ | 126 V(NumberTagI) \ |
127 V(NumberTagU) \ | 127 V(NumberTagU) \ |
128 V(NumberUntagD) \ | 128 V(NumberUntagD) \ |
129 V(OsrEntry) \ | 129 V(OsrEntry) \ |
130 V(Parameter) \ | 130 V(Parameter) \ |
131 V(Power) \ | 131 V(Power) \ |
| 132 V(Prologue) \ |
132 V(PushArgument) \ | 133 V(PushArgument) \ |
133 V(RegExpLiteral) \ | 134 V(RegExpLiteral) \ |
134 V(Return) \ | 135 V(Return) \ |
135 V(SeqStringGetChar) \ | 136 V(SeqStringGetChar) \ |
136 V(SeqStringSetChar) \ | 137 V(SeqStringSetChar) \ |
137 V(ShiftI) \ | 138 V(ShiftI) \ |
138 V(SmiTag) \ | 139 V(SmiTag) \ |
139 V(SmiUntag) \ | 140 V(SmiUntag) \ |
140 V(StackCheck) \ | 141 V(StackCheck) \ |
141 V(StoreCodeEntry) \ | 142 V(StoreCodeEntry) \ |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 void PrintDataTo(StringStream* stream) override; | 387 void PrintDataTo(StringStream* stream) override; |
387 bool IsControl() const override { return true; } | 388 bool IsControl() const override { return true; } |
388 | 389 |
389 int block_id() const { return block_->block_id(); } | 390 int block_id() const { return block_->block_id(); } |
390 | 391 |
391 private: | 392 private: |
392 HBasicBlock* block_; | 393 HBasicBlock* block_; |
393 }; | 394 }; |
394 | 395 |
395 | 396 |
| 397 class LPrologue final : public LTemplateInstruction<0, 0, 0> { |
| 398 public: |
| 399 DECLARE_CONCRETE_INSTRUCTION(Prologue, "prologue") |
| 400 }; |
| 401 |
| 402 |
396 class LLazyBailout final : public LTemplateInstruction<0, 0, 0> { | 403 class LLazyBailout final : public LTemplateInstruction<0, 0, 0> { |
397 public: | 404 public: |
398 LLazyBailout() : gap_instructions_size_(0) { } | 405 LLazyBailout() : gap_instructions_size_(0) { } |
399 | 406 |
400 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") | 407 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") |
401 | 408 |
402 void set_gap_instructions_size(int gap_instructions_size) { | 409 void set_gap_instructions_size(int gap_instructions_size) { |
403 gap_instructions_size_ = gap_instructions_size; | 410 gap_instructions_size_ = gap_instructions_size; |
404 } | 411 } |
405 int gap_instructions_size() { return gap_instructions_size_; } | 412 int gap_instructions_size() { return gap_instructions_size_; } |
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2874 |
2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2875 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2869 }; | 2876 }; |
2870 | 2877 |
2871 #undef DECLARE_HYDROGEN_ACCESSOR | 2878 #undef DECLARE_HYDROGEN_ACCESSOR |
2872 #undef DECLARE_CONCRETE_INSTRUCTION | 2879 #undef DECLARE_CONCRETE_INSTRUCTION |
2873 | 2880 |
2874 } } // namespace v8::int | 2881 } } // namespace v8::int |
2875 | 2882 |
2876 #endif // V8_X64_LITHIUM_X64_H_ | 2883 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |