| OLD | NEW |
| 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/compiler/access-builder.h" | 6 #include "src/compiler/access-builder.h" |
| 7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
| 8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
| 9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 | 59 |
| 60 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0, | 60 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0, |
| 61 -1.0, 0.0, 1.0, 42.0, | 61 -1.0, 0.0, 1.0, 42.0, |
| 62 1000.0, INT_MAX, UINT_MAX, V8_INFINITY}; | 62 1000.0, INT_MAX, UINT_MAX, V8_INFINITY}; |
| 63 | 63 |
| 64 | 64 |
| 65 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(), | 65 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(), |
| 66 Type::Number(), Type::String(), Type::Object()}; | 66 Type::Number(), Type::String(), Type::Object()}; |
| 67 | 67 |
| 68 | 68 STATIC_ASSERT(LANGUAGE_END == 2); |
| 69 STATIC_ASSERT(LANGUAGE_END == 3); | |
| 70 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT}; | 69 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT}; |
| 71 | 70 |
| 72 } // namespace | 71 } // namespace |
| 73 | 72 |
| 74 | 73 |
| 75 class JSTypedLoweringTest : public TypedGraphTest { | 74 class JSTypedLoweringTest : public TypedGraphTest { |
| 76 public: | 75 public: |
| 77 JSTypedLoweringTest() | 76 JSTypedLoweringTest() |
| 78 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {} | 77 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {} |
| 79 ~JSTypedLoweringTest() override {} | 78 ~JSTypedLoweringTest() override {} |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 EmptyFrameState(), effect, control)); | 1222 EmptyFrameState(), effect, control)); |
| 1224 ASSERT_TRUE(r.Changed()); | 1223 ASSERT_TRUE(r.Changed()); |
| 1225 EXPECT_THAT(r.replacement(), IsSpeculativeNumberBitwiseXor( | 1224 EXPECT_THAT(r.replacement(), IsSpeculativeNumberBitwiseXor( |
| 1226 NumberOperationHint::kNumberOrOddball, lhs, | 1225 NumberOperationHint::kNumberOrOddball, lhs, |
| 1227 rhs, effect, control)); | 1226 rhs, effect, control)); |
| 1228 } | 1227 } |
| 1229 | 1228 |
| 1230 } // namespace compiler | 1229 } // namespace compiler |
| 1231 } // namespace internal | 1230 } // namespace internal |
| 1232 } // namespace v8 | 1231 } // namespace v8 |
| OLD | NEW |