| 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/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
| 6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
| 7 #include "src/compiler/js-operator.h" | 7 #include "src/compiler/js-operator.h" |
| 8 #include "src/compiler/js-typed-lowering.h" | 8 #include "src/compiler/js-typed-lowering.h" |
| 9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
| 10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0, | 56 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0, |
| 57 -1.0, 0.0, 1.0, 42.0, | 57 -1.0, 0.0, 1.0, 42.0, |
| 58 1000.0, INT_MAX, UINT_MAX, V8_INFINITY}; | 58 1000.0, INT_MAX, UINT_MAX, V8_INFINITY}; |
| 59 | 59 |
| 60 | 60 |
| 61 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(), | 61 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(), |
| 62 Type::Number(), Type::String(), Type::Object()}; | 62 Type::Number(), Type::String(), Type::Object()}; |
| 63 | 63 |
| 64 | 64 |
| 65 STATIC_ASSERT(LANGUAGE_END == 2); | 65 STATIC_ASSERT(LANGUAGE_END == 3); |
| 66 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT}; | 66 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT, STRONG}; |
| 67 | 67 |
| 68 } // namespace | 68 } // namespace |
| 69 | 69 |
| 70 | 70 |
| 71 class JSTypedLoweringTest : public TypedGraphTest { | 71 class JSTypedLoweringTest : public TypedGraphTest { |
| 72 public: | 72 public: |
| 73 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {} | 73 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {} |
| 74 ~JSTypedLoweringTest() OVERRIDE {} | 74 ~JSTypedLoweringTest() OVERRIDE {} |
| 75 | 75 |
| 76 protected: | 76 protected: |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 IsStoreElement( | 797 IsStoreElement( |
| 798 access, IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])), | 798 access, IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])), |
| 799 key, value, effect, control)); | 799 key, value, effect, control)); |
| 800 } | 800 } |
| 801 } | 801 } |
| 802 } | 802 } |
| 803 | 803 |
| 804 } // namespace compiler | 804 } // namespace compiler |
| 805 } // namespace internal | 805 } // namespace internal |
| 806 } // namespace v8 | 806 } // namespace v8 |
| OLD | NEW |