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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 #define REPLACE_RUNTIME_CALL(op, fun) \ | 91 #define REPLACE_RUNTIME_CALL(op, fun) \ |
92 void JSGenericLowering::Lower##op(Node* node) { \ | 92 void JSGenericLowering::Lower##op(Node* node) { \ |
93 ReplaceWithRuntimeCall(node, fun); \ | 93 ReplaceWithRuntimeCall(node, fun); \ |
94 } | 94 } |
95 REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof) | 95 REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof) |
96 REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort) | 96 REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort) |
97 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) | 97 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) |
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::kNewScriptContext) |
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 #undef REPLACE_UNIMPLEMENTED | 108 #undef REPLACE_UNIMPLEMENTED |
109 | 109 |
110 | 110 |
111 static CallDescriptor::Flags FlagsForNode(Node* node) { | 111 static CallDescriptor::Flags FlagsForNode(Node* node) { |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 MachineOperatorBuilder* JSGenericLowering::machine() const { | 550 MachineOperatorBuilder* JSGenericLowering::machine() const { |
551 return jsgraph()->machine(); | 551 return jsgraph()->machine(); |
552 } | 552 } |
553 | 553 |
554 } // namespace compiler | 554 } // namespace compiler |
555 } // namespace internal | 555 } // namespace internal |
556 } // namespace v8 | 556 } // namespace v8 |
OLD | NEW |