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

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

Issue 716833002: Various clean-ups after top-level lexical declarations are done. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing Created 6 years, 1 month 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 | « src/compiler.cc ('k') | src/compiler/js-operator.h » ('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/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/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-generic-lowering.h" 9 #include "src/compiler/js-generic-lowering.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void JSGenericLowering::Lower##op(Node* node) { \ 113 void JSGenericLowering::Lower##op(Node* node) { \
114 ReplaceWithRuntimeCall(node, fun); \ 114 ReplaceWithRuntimeCall(node, fun); \
115 } 115 }
116 REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof) 116 REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof)
117 REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort) 117 REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort)
118 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) 118 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext)
119 REPLACE_RUNTIME_CALL(JSCreateCatchContext, Runtime::kPushCatchContext) 119 REPLACE_RUNTIME_CALL(JSCreateCatchContext, Runtime::kPushCatchContext)
120 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) 120 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext)
121 REPLACE_RUNTIME_CALL(JSCreateBlockContext, Runtime::kPushBlockContext) 121 REPLACE_RUNTIME_CALL(JSCreateBlockContext, Runtime::kPushBlockContext)
122 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext) 122 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext)
123 REPLACE_RUNTIME_CALL(JSCreateGlobalContext, Runtime::kAbort) 123 REPLACE_RUNTIME_CALL(JSCreateScriptContext, Runtime::kAbort)
124 #undef REPLACE_RUNTIME 124 #undef REPLACE_RUNTIME
125 125
126 126
127 #define REPLACE_UNIMPLEMENTED(op) \ 127 #define REPLACE_UNIMPLEMENTED(op) \
128 void JSGenericLowering::Lower##op(Node* node) { UNIMPLEMENTED(); } 128 void JSGenericLowering::Lower##op(Node* node) { UNIMPLEMENTED(); }
129 REPLACE_UNIMPLEMENTED(JSToName) 129 REPLACE_UNIMPLEMENTED(JSToName)
130 REPLACE_UNIMPLEMENTED(JSYield) 130 REPLACE_UNIMPLEMENTED(JSYield)
131 REPLACE_UNIMPLEMENTED(JSDebugger) 131 REPLACE_UNIMPLEMENTED(JSDebugger)
132 #undef REPLACE_UNIMPLEMENTED 132 #undef REPLACE_UNIMPLEMENTED
133 133
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 444
445 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 445 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
446 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 446 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
447 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 447 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
448 } 448 }
449 449
450 } // namespace compiler 450 } // namespace compiler
451 } // namespace internal 451 } // namespace internal
452 } // namespace v8 452 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698