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

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

Issue 620803003: [turbofan] Add control input to Load and LoadElements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/change-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 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 #include "src/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 PrepareFrameState(store, bailout_id); 1968 PrepareFrameState(store, bailout_id);
1969 return store; 1969 return store;
1970 } 1970 }
1971 } 1971 }
1972 UNREACHABLE(); 1972 UNREACHABLE();
1973 return NULL; 1973 return NULL;
1974 } 1974 }
1975 1975
1976 1976
1977 Node* AstGraphBuilder::BuildLoadObjectField(Node* object, int offset) { 1977 Node* AstGraphBuilder::BuildLoadObjectField(Node* object, int offset) {
1978 // TODO(sigurds) Use simplified load here once it is ready.
1979 Node* field_load = NewNode(jsgraph()->machine()->Load(kMachAnyTagged), object, 1978 Node* field_load = NewNode(jsgraph()->machine()->Load(kMachAnyTagged), object,
1980 jsgraph()->Int32Constant(offset - kHeapObjectTag)); 1979 jsgraph()->Int32Constant(offset - kHeapObjectTag));
1981 return field_load; 1980 return field_load;
1982 } 1981 }
1983 1982
1984 1983
1985 Node* AstGraphBuilder::BuildLoadBuiltinsObject() { 1984 Node* AstGraphBuilder::BuildLoadBuiltinsObject() {
1986 Node* global = BuildLoadGlobalObject(); 1985 Node* global = BuildLoadGlobalObject();
1987 Node* builtins = 1986 Node* builtins =
1988 BuildLoadObjectField(global, JSGlobalObject::kBuiltinsOffset); 1987 BuildLoadObjectField(global, JSGlobalObject::kBuiltinsOffset);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2066 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == 2065 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() ==
2067 IrOpcode::kDead); 2066 IrOpcode::kDead);
2068 NodeProperties::ReplaceFrameStateInput( 2067 NodeProperties::ReplaceFrameStateInput(
2069 node, environment()->Checkpoint(ast_id, combine)); 2068 node, environment()->Checkpoint(ast_id, combine));
2070 } 2069 }
2071 } 2070 }
2072 2071
2073 } 2072 }
2074 } 2073 }
2075 } // namespace v8::internal::compiler 2074 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698