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_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
7 | 7 |
8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
9 #include "src/compiler/instruction-selector.h" | 9 #include "src/compiler/instruction-selector.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 327 matching lines...) Loading... |
338 InstructionOperandVector instruction_args; | 338 InstructionOperandVector instruction_args; |
339 NodeVector pushed_nodes; | 339 NodeVector pushed_nodes; |
340 | 340 |
341 int input_count() const { return descriptor->InputCount(); } | 341 int input_count() const { return descriptor->InputCount(); } |
342 | 342 |
343 int frame_state_count() const { return descriptor->FrameStateCount(); } | 343 int frame_state_count() const { return descriptor->FrameStateCount(); } |
344 | 344 |
345 int frame_state_value_count() const { | 345 int frame_state_value_count() const { |
346 return (frame_state_descriptor == NULL) | 346 return (frame_state_descriptor == NULL) |
347 ? 0 | 347 ? 0 |
348 : (frame_state_descriptor->size() + 1); | 348 : (frame_state_descriptor->total_size() + |
| 349 1); // Include deopt id. |
349 } | 350 } |
350 }; | 351 }; |
351 | 352 |
352 } // namespace compiler | 353 } // namespace compiler |
353 } // namespace internal | 354 } // namespace internal |
354 } // namespace v8 | 355 } // namespace v8 |
355 | 356 |
356 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 357 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
OLD | NEW |