| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |