| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/compiler/js-type-feedback.h" | 5 #include "src/compiler/js-type-feedback.h" |
| 6 | 6 |
| 7 #include "src/property-details.h" | 7 #include "src/property-details.h" |
| 8 | 8 |
| 9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 | 356 |
| 357 // Get the frame state before an operation if it exists and has a valid | 357 // Get the frame state before an operation if it exists and has a valid |
| 358 // bailout id. | 358 // bailout id. |
| 359 Node* JSTypeFeedbackSpecializer::GetFrameStateBefore(Node* node) { | 359 Node* JSTypeFeedbackSpecializer::GetFrameStateBefore(Node* node) { |
| 360 int count = OperatorProperties::GetFrameStateInputCount(node->op()); | 360 int count = OperatorProperties::GetFrameStateInputCount(node->op()); |
| 361 DCHECK_LE(count, 2); | 361 DCHECK_LE(count, 2); |
| 362 if (count == 2) { | 362 if (count == 2) { |
| 363 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); | 363 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
| 364 if (frame_state->opcode() == IrOpcode::kFrameState) { | 364 if (frame_state->opcode() == IrOpcode::kFrameState) { |
| 365 BailoutId id = OpParameter<FrameStateCallInfo>(node).bailout_id(); | 365 BailoutId id = OpParameter<FrameStateInfo>(node).bailout_id(); |
| 366 if (id != BailoutId::None()) return frame_state; | 366 if (id != BailoutId::None()) return frame_state; |
| 367 } | 367 } |
| 368 } | 368 } |
| 369 return nullptr; | 369 return nullptr; |
| 370 } | 370 } |
| 371 | 371 |
| 372 } // namespace compiler | 372 } // namespace compiler |
| 373 } // namespace internal | 373 } // namespace internal |
| 374 } // namespace v8 | 374 } // namespace v8 |
| OLD | NEW |