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

Side by Side Diff: test/cctest/compiler/test-js-typed-lowering.cc

Issue 1371823002: Fix compilation with GCC 5.2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix debug compilation Created 5 years, 2 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/x64/code-generator-x64.cc ('k') | no next file » | 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/js-graph.h" 5 #include "src/compiler/js-graph.h"
6 #include "src/compiler/js-typed-lowering.h" 6 #include "src/compiler/js-typed-lowering.h"
7 #include "src/compiler/machine-operator.h" 7 #include "src/compiler/machine-operator.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 #include "src/compiler/operator-properties.h" 10 #include "src/compiler/operator-properties.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 Type::Integral32()}; 212 Type::Integral32()};
213 213
214 214
215 static Type* kNumberTypes[] = { 215 static Type* kNumberTypes[] = {
216 Type::UnsignedSmall(), Type::Negative32(), Type::Unsigned31(), 216 Type::UnsignedSmall(), Type::Negative32(), Type::Unsigned31(),
217 Type::SignedSmall(), Type::Signed32(), Type::Unsigned32(), 217 Type::SignedSmall(), Type::Signed32(), Type::Unsigned32(),
218 Type::Integral32(), Type::MinusZero(), Type::NaN(), 218 Type::Integral32(), Type::MinusZero(), Type::NaN(),
219 Type::OrderedNumber(), Type::PlainNumber(), Type::Number()}; 219 Type::OrderedNumber(), Type::PlainNumber(), Type::Number()};
220 220
221 221
222 static Type* kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(),
223 Type::Number(), Type::String(), Type::Object()};
224
225
226 static Type* I32Type(bool is_signed) { 222 static Type* I32Type(bool is_signed) {
227 return is_signed ? Type::Signed32() : Type::Unsigned32(); 223 return is_signed ? Type::Signed32() : Type::Unsigned32();
228 } 224 }
229 225
230 226
231 static IrOpcode::Value NumberToI32(bool is_signed) { 227 static IrOpcode::Value NumberToI32(bool is_signed) {
232 return is_signed ? IrOpcode::kNumberToInt32 : IrOpcode::kNumberToUint32; 228 return is_signed ? IrOpcode::kNumberToInt32 : IrOpcode::kNumberToUint32;
233 } 229 }
234 230
235 231
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 CHECK_EQ(p1, r->InputAt(0)); 1250 CHECK_EQ(p1, r->InputAt(0));
1255 CHECK_EQ(p0, r->InputAt(1)); 1251 CHECK_EQ(p0, r->InputAt(1));
1256 } else { 1252 } else {
1257 CHECK_EQ(p0, r->InputAt(0)); 1253 CHECK_EQ(p0, r->InputAt(0));
1258 CHECK_EQ(p1, r->InputAt(1)); 1254 CHECK_EQ(p1, r->InputAt(1));
1259 } 1255 }
1260 } 1256 }
1261 } 1257 }
1262 } 1258 }
1263 } 1259 }
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698