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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 2623473002: [turbofan] Remove eager checkpoint. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | 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/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/compiler-source-position-table.h" 10 #include "src/compiler/compiler-source-position-table.h"
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 1679
1680 void BytecodeGraphBuilder::VisitTestUndefined() { 1680 void BytecodeGraphBuilder::VisitTestUndefined() {
1681 Node* object = 1681 Node* object =
1682 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); 1682 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0));
1683 Node* result = NewNode(javascript()->StrictEqual(CompareOperationHint::kAny), 1683 Node* result = NewNode(javascript()->StrictEqual(CompareOperationHint::kAny),
1684 object, jsgraph()->UndefinedConstant()); 1684 object, jsgraph()->UndefinedConstant());
1685 environment()->BindAccumulator(result); 1685 environment()->BindAccumulator(result);
1686 } 1686 }
1687 1687
1688 void BytecodeGraphBuilder::BuildCastOperator(const Operator* js_op) { 1688 void BytecodeGraphBuilder::BuildCastOperator(const Operator* js_op) {
1689 PrepareEagerCheckpoint();
1690 Node* value = NewNode(js_op, environment()->LookupAccumulator()); 1689 Node* value = NewNode(js_op, environment()->LookupAccumulator());
1691 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), value, 1690 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), value,
1692 Environment::kAttachFrameState); 1691 Environment::kAttachFrameState);
1693 } 1692 }
1694 1693
1695 void BytecodeGraphBuilder::VisitToName() { 1694 void BytecodeGraphBuilder::VisitToName() {
1696 BuildCastOperator(javascript()->ToName()); 1695 BuildCastOperator(javascript()->ToName());
1697 } 1696 }
1698 1697
1699 void BytecodeGraphBuilder::VisitToObject() { 1698 void BytecodeGraphBuilder::VisitToObject() {
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2267 it->source_position().ScriptOffset(), start_position_.InliningId())); 2266 it->source_position().ScriptOffset(), start_position_.InliningId()));
2268 it->Advance(); 2267 it->Advance();
2269 } else { 2268 } else {
2270 DCHECK_GT(it->code_offset(), offset); 2269 DCHECK_GT(it->code_offset(), offset);
2271 } 2270 }
2272 } 2271 }
2273 2272
2274 } // namespace compiler 2273 } // namespace compiler
2275 } // namespace internal 2274 } // namespace internal
2276 } // namespace v8 2275 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698