| 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/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) | 98 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) |
| 99 REPLACE_RUNTIME_CALL(JSCreateBlockContext, Runtime::kPushBlockContext) | 99 REPLACE_RUNTIME_CALL(JSCreateBlockContext, Runtime::kPushBlockContext) |
| 100 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext) | 100 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext) |
| 101 REPLACE_RUNTIME_CALL(JSCreateScriptContext, Runtime::kAbort) | 101 REPLACE_RUNTIME_CALL(JSCreateScriptContext, Runtime::kAbort) |
| 102 #undef REPLACE_RUNTIME | 102 #undef REPLACE_RUNTIME |
| 103 | 103 |
| 104 | 104 |
| 105 #define REPLACE_UNIMPLEMENTED(op) \ | 105 #define REPLACE_UNIMPLEMENTED(op) \ |
| 106 void JSGenericLowering::Lower##op(Node* node) { UNIMPLEMENTED(); } | 106 void JSGenericLowering::Lower##op(Node* node) { UNIMPLEMENTED(); } |
| 107 REPLACE_UNIMPLEMENTED(JSYield) | 107 REPLACE_UNIMPLEMENTED(JSYield) |
| 108 REPLACE_UNIMPLEMENTED(JSDebugger) | |
| 109 #undef REPLACE_UNIMPLEMENTED | 108 #undef REPLACE_UNIMPLEMENTED |
| 110 | 109 |
| 111 | 110 |
| 112 static CallDescriptor::Flags FlagsForNode(Node* node) { | 111 static CallDescriptor::Flags FlagsForNode(Node* node) { |
| 113 CallDescriptor::Flags result = CallDescriptor::kNoFlags; | 112 CallDescriptor::Flags result = CallDescriptor::kNoFlags; |
| 114 if (OperatorProperties::GetFrameStateInputCount(node->op()) > 0) { | 113 if (OperatorProperties::GetFrameStateInputCount(node->op()) > 0) { |
| 115 result |= CallDescriptor::kNeedsFrameState; | 114 result |= CallDescriptor::kNeedsFrameState; |
| 116 } | 115 } |
| 117 return result; | 116 return result; |
| 118 } | 117 } |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 } | 547 } |
| 549 | 548 |
| 550 | 549 |
| 551 MachineOperatorBuilder* JSGenericLowering::machine() const { | 550 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 552 return jsgraph()->machine(); | 551 return jsgraph()->machine(); |
| 553 } | 552 } |
| 554 | 553 |
| 555 } // namespace compiler | 554 } // namespace compiler |
| 556 } // namespace internal | 555 } // namespace internal |
| 557 } // namespace v8 | 556 } // namespace v8 |
| OLD | NEW |