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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 2763533002: [WIP] JSForInLowering and JSForInHasOwnProperty.
Patch Set: Hack around the issue with indices not being available always. Created 3 years, 9 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/compiler/pipeline.cc ('k') | src/compiler/simplified-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/compiler/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2380 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 } 2391 }
2392 return; 2392 return;
2393 } 2393 }
2394 2394
2395 case IrOpcode::kAllocate: { 2395 case IrOpcode::kAllocate: {
2396 ProcessInput(node, 0, UseInfo::TruncatingWord32()); 2396 ProcessInput(node, 0, UseInfo::TruncatingWord32());
2397 ProcessRemainingInputs(node, 1); 2397 ProcessRemainingInputs(node, 1);
2398 SetOutput(node, MachineRepresentation::kTaggedPointer); 2398 SetOutput(node, MachineRepresentation::kTaggedPointer);
2399 return; 2399 return;
2400 } 2400 }
2401 case IrOpcode::kLoadFieldByIndex: {
2402 if (truncation.IsUnused()) return VisitUnused(node);
2403 VisitBinop(node, UseInfo::AnyTagged(), UseInfo::TruncatingWord32(),
2404 MachineRepresentation::kTagged);
2405 return;
2406 }
2401 case IrOpcode::kLoadField: { 2407 case IrOpcode::kLoadField: {
2402 if (truncation.IsUnused()) return VisitUnused(node); 2408 if (truncation.IsUnused()) return VisitUnused(node);
2403 FieldAccess access = FieldAccessOf(node->op()); 2409 FieldAccess access = FieldAccessOf(node->op());
2404 MachineRepresentation const representation = 2410 MachineRepresentation const representation =
2405 access.machine_type.representation(); 2411 access.machine_type.representation();
2406 VisitUnop(node, UseInfoForBasePointer(access), representation); 2412 VisitUnop(node, UseInfoForBasePointer(access), representation);
2407 return; 2413 return;
2408 } 2414 }
2409 case IrOpcode::kStoreField: { 2415 case IrOpcode::kStoreField: {
2410 FieldAccess access = FieldAccessOf(node->op()); 2416 FieldAccess access = FieldAccessOf(node->op());
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
3611 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 3617 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
3612 Operator::kNoProperties); 3618 Operator::kNoProperties);
3613 to_number_operator_.set(common()->Call(desc)); 3619 to_number_operator_.set(common()->Call(desc));
3614 } 3620 }
3615 return to_number_operator_.get(); 3621 return to_number_operator_.get();
3616 } 3622 }
3617 3623
3618 } // namespace compiler 3624 } // namespace compiler
3619 } // namespace internal 3625 } // namespace internal
3620 } // namespace v8 3626 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698