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

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

Issue 1288923002: Revert of [runtime] Remove useless IN builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/builtins.h ('k') | src/compiler/js-intrinsic-lowering.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/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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 void JSGenericLowering::LowerJSDeleteProperty(Node* node) { 431 void JSGenericLowering::LowerJSDeleteProperty(Node* node) {
432 LanguageMode language_mode = OpParameter<LanguageMode>(node); 432 LanguageMode language_mode = OpParameter<LanguageMode>(node);
433 ReplaceWithRuntimeCall(node, is_strict(language_mode) 433 ReplaceWithRuntimeCall(node, is_strict(language_mode)
434 ? Runtime::kDeleteProperty_Strict 434 ? Runtime::kDeleteProperty_Strict
435 : Runtime::kDeleteProperty_Sloppy); 435 : Runtime::kDeleteProperty_Sloppy);
436 } 436 }
437 437
438 438
439 void JSGenericLowering::LowerJSHasProperty(Node* node) { 439 void JSGenericLowering::LowerJSHasProperty(Node* node) {
440 ReplaceWithRuntimeCall(node, Runtime::kHasProperty); 440 ReplaceWithBuiltinCall(node, Builtins::IN, 2);
441 } 441 }
442 442
443 443
444 void JSGenericLowering::LowerJSInstanceOf(Node* node) { 444 void JSGenericLowering::LowerJSInstanceOf(Node* node) {
445 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 445 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
446 InstanceofStub::Flags stub_flags = static_cast<InstanceofStub::Flags>( 446 InstanceofStub::Flags stub_flags = static_cast<InstanceofStub::Flags>(
447 InstanceofStub::kReturnTrueFalseObject | 447 InstanceofStub::kReturnTrueFalseObject |
448 InstanceofStub::kArgsInRegisters); 448 InstanceofStub::kArgsInRegisters);
449 Callable callable = CodeFactory::Instanceof(isolate(), stub_flags); 449 Callable callable = CodeFactory::Instanceof(isolate(), stub_flags);
450 ReplaceWithStubCall(node, callable, flags); 450 ReplaceWithStubCall(node, callable, flags);
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 849 }
850 850
851 851
852 MachineOperatorBuilder* JSGenericLowering::machine() const { 852 MachineOperatorBuilder* JSGenericLowering::machine() const {
853 return jsgraph()->machine(); 853 return jsgraph()->machine();
854 } 854 }
855 855
856 } // namespace compiler 856 } // namespace compiler
857 } // namespace internal 857 } // namespace internal
858 } // namespace v8 858 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698