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

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

Issue 522873002: Removal of the deoptimization block from Turbofan (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Change constant capitalization Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/linkage.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-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/graph-inl.h" 7 #include "src/compiler/graph-inl.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-aux-data-inl.h" 10 #include "src/compiler/node-aux-data-inl.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 REPLACE_UNIMPLEMENTED(JSToString) 289 REPLACE_UNIMPLEMENTED(JSToString)
290 REPLACE_UNIMPLEMENTED(JSToName) 290 REPLACE_UNIMPLEMENTED(JSToName)
291 REPLACE_UNIMPLEMENTED(JSYield) 291 REPLACE_UNIMPLEMENTED(JSYield)
292 REPLACE_UNIMPLEMENTED(JSDebugger) 292 REPLACE_UNIMPLEMENTED(JSDebugger)
293 #undef REPLACE_UNIMPLEMENTED 293 #undef REPLACE_UNIMPLEMENTED
294 294
295 295
296 static CallDescriptor::Flags FlagsForNode(Node* node) { 296 static CallDescriptor::Flags FlagsForNode(Node* node) {
297 CallDescriptor::Flags result = CallDescriptor::kNoFlags; 297 CallDescriptor::Flags result = CallDescriptor::kNoFlags;
298 if (OperatorProperties::CanLazilyDeoptimize(node->op())) {
299 result |= CallDescriptor::kLazyDeoptimization;
300 }
301 if (OperatorProperties::HasFrameStateInput(node->op())) { 298 if (OperatorProperties::HasFrameStateInput(node->op())) {
302 result |= CallDescriptor::kNeedsFrameState; 299 result |= CallDescriptor::kNeedsFrameState;
303 } 300 }
304 return result; 301 return result;
305 } 302 }
306 303
307 304
308 void JSGenericLowering::ReplaceWithCompareIC(Node* node, Token::Value token, 305 void JSGenericLowering::ReplaceWithCompareIC(Node* node, Token::Value token,
309 bool pure) { 306 bool pure) {
310 BinaryOpICStub stub(isolate(), Token::ADD); // TODO(mstarzinger): Hack. 307 BinaryOpICStub stub(isolate(), Token::ADD); // TODO(mstarzinger): Hack.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { 545 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) {
549 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); 546 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node);
550 int arity = OperatorProperties::GetValueInputCount(node->op()); 547 int arity = OperatorProperties::GetValueInputCount(node->op());
551 ReplaceWithRuntimeCall(node, function, arity); 548 ReplaceWithRuntimeCall(node, function, arity);
552 return node; 549 return node;
553 } 550 }
554 551
555 } // namespace compiler 552 } // namespace compiler
556 } // namespace internal 553 } // namespace internal
557 } // namespace v8 554 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698