Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: src/compiler/js-type-feedback.cc

Issue 1191243003: [turbofan] Factor out the function specific part from the frame state operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698