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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Leftovers. Created 4 years, 6 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
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/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Nothing to see. 45 // Nothing to see.
46 return NoChange(); 46 return NoChange();
47 } 47 }
48 return Changed(node); 48 return Changed(node);
49 } 49 }
50 #define REPLACE_RUNTIME_CALL(op, fun) \ 50 #define REPLACE_RUNTIME_CALL(op, fun) \
51 void JSGenericLowering::Lower##op(Node* node) { \ 51 void JSGenericLowering::Lower##op(Node* node) { \
52 ReplaceWithRuntimeCall(node, fun); \ 52 ReplaceWithRuntimeCall(node, fun); \
53 } 53 }
54 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) 54 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext)
55 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext)
56 REPLACE_RUNTIME_CALL(JSConvertReceiver, Runtime::kConvertReceiver) 55 REPLACE_RUNTIME_CALL(JSConvertReceiver, Runtime::kConvertReceiver)
57 #undef REPLACE_RUNTIME_CALL 56 #undef REPLACE_RUNTIME_CALL
58 57
59 #define REPLACE_STUB_CALL(Name) \ 58 #define REPLACE_STUB_CALL(Name) \
60 void JSGenericLowering::LowerJS##Name(Node* node) { \ 59 void JSGenericLowering::LowerJS##Name(Node* node) { \
61 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); \ 60 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); \
62 Callable callable = CodeFactory::Name(isolate()); \ 61 Callable callable = CodeFactory::Name(isolate()); \
63 ReplaceWithStubCall(node, callable, flags); \ 62 ReplaceWithStubCall(node, callable, flags); \
64 } 63 }
65 REPLACE_STUB_CALL(Add) 64 REPLACE_STUB_CALL(Add)
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 } 738 }
740 739
741 740
742 MachineOperatorBuilder* JSGenericLowering::machine() const { 741 MachineOperatorBuilder* JSGenericLowering::machine() const {
743 return jsgraph()->machine(); 742 return jsgraph()->machine();
744 } 743 }
745 744
746 } // namespace compiler 745 } // namespace compiler
747 } // namespace internal 746 } // namespace internal
748 } // namespace v8 747 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698