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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 758073002: [turbofan] Use special constant type for RPO block number operands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/compiler/code-generator-impl.h ('k') | src/compiler/instruction.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); 62 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED));
63 case Constant::kFloat64: 63 case Constant::kFloat64:
64 return Immediate( 64 return Immediate(
65 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); 65 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED));
66 case Constant::kExternalReference: 66 case Constant::kExternalReference:
67 return Immediate(constant.ToExternalReference()); 67 return Immediate(constant.ToExternalReference());
68 case Constant::kHeapObject: 68 case Constant::kHeapObject:
69 return Immediate(constant.ToHeapObject()); 69 return Immediate(constant.ToHeapObject());
70 case Constant::kInt64: 70 case Constant::kInt64:
71 break; 71 break;
72 case Constant::kRpoNumber:
73 return Immediate::CodeRelativeOffset(ToLabel(operand));
72 } 74 }
73 UNREACHABLE(); 75 UNREACHABLE();
74 return Immediate(-1); 76 return Immediate(-1);
75 } 77 }
76 78
77 static int NextOffset(int* offset) { 79 static int NextOffset(int* offset) {
78 int i = *offset; 80 int i = *offset;
79 (*offset)++; 81 (*offset)++;
80 return i; 82 return i;
81 } 83 }
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1034 }
1033 } 1035 }
1034 MarkLazyDeoptSite(); 1036 MarkLazyDeoptSite();
1035 } 1037 }
1036 1038
1037 #undef __ 1039 #undef __
1038 1040
1039 } // namespace compiler 1041 } // namespace compiler
1040 } // namespace internal 1042 } // namespace internal
1041 } // namespace v8 1043 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698