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

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

Issue 1486563002: Remove {FIRST,LAST}_SPEC_OBJECT_TYPE. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/arm64/code-stubs-arm64.cc ('k') | src/compiler/js-typed-lowering.cc » ('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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 Node* cache_length_false0; 724 Node* cache_length_false0;
725 Node* cache_type_false0; 725 Node* cache_type_false0;
726 Node* efalse0; 726 Node* efalse0;
727 { 727 {
728 // FixedArray case. 728 // FixedArray case.
729 Node* object_instance_type = efalse0 = graph()->NewNode( 729 Node* object_instance_type = efalse0 = graph()->NewNode(
730 machine()->Load(kMachUint8), object_map, 730 machine()->Load(kMachUint8), object_map,
731 jsgraph()->IntPtrConstant(Map::kInstanceTypeOffset - kHeapObjectTag), 731 jsgraph()->IntPtrConstant(Map::kInstanceTypeOffset - kHeapObjectTag),
732 effect, if_false0); 732 effect, if_false0);
733 733
734 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 734 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE);
735 Node* check1 = graph()->NewNode( 735 Node* check1 = graph()->NewNode(
736 machine()->Uint32LessThanOrEqual(), object_instance_type, 736 machine()->Uint32LessThanOrEqual(), object_instance_type,
737 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE)); 737 jsgraph()->Uint32Constant(LAST_JS_PROXY_TYPE));
738 Node* branch1 = graph()->NewNode(common()->Branch(BranchHint::kFalse), 738 Node* branch1 = graph()->NewNode(common()->Branch(BranchHint::kFalse),
739 check1, if_false0); 739 check1, if_false0);
740 740
741 Node* if_true1 = graph()->NewNode(common()->IfTrue(), branch1); 741 Node* if_true1 = graph()->NewNode(common()->IfTrue(), branch1);
742 Node* cache_type_true1 = jsgraph()->ZeroConstant(); // Zero indicates proxy 742 Node* cache_type_true1 = jsgraph()->ZeroConstant(); // Zero indicates proxy
743 743
744 Node* if_false1 = graph()->NewNode(common()->IfFalse(), branch1); 744 Node* if_false1 = graph()->NewNode(common()->IfFalse(), branch1);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 } 890 }
891 891
892 892
893 MachineOperatorBuilder* JSGenericLowering::machine() const { 893 MachineOperatorBuilder* JSGenericLowering::machine() const {
894 return jsgraph()->machine(); 894 return jsgraph()->machine();
895 } 895 }
896 896
897 } // namespace compiler 897 } // namespace compiler
898 } // namespace internal 898 } // namespace internal
899 } // namespace v8 899 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698