| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #include "src/code-stub-assembler.h" | 4 #include "src/code-stub-assembler.h" |
| 5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/frames-inl.h" | 6 #include "src/frames-inl.h" |
| 7 #include "src/frames.h" | 7 #include "src/frames.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2864 Int32Constant(0)); | 2864 Int32Constant(0)); |
| 2865 } | 2865 } |
| 2866 | 2866 |
| 2867 Node* CodeStubAssembler::IsCallableMap(Node* map) { | 2867 Node* CodeStubAssembler::IsCallableMap(Node* map) { |
| 2868 CSA_ASSERT(this, IsMap(map)); | 2868 CSA_ASSERT(this, IsMap(map)); |
| 2869 return Word32NotEqual( | 2869 return Word32NotEqual( |
| 2870 Word32And(LoadMapBitField(map), Int32Constant(1 << Map::kIsCallable)), | 2870 Word32And(LoadMapBitField(map), Int32Constant(1 << Map::kIsCallable)), |
| 2871 Int32Constant(0)); | 2871 Int32Constant(0)); |
| 2872 } | 2872 } |
| 2873 | 2873 |
| 2874 Node* CodeStubAssembler::IsDeprecatedMap(Node* map) { |
| 2875 CSA_ASSERT(this, IsMap(map)); |
| 2876 return IsSetWord32<Map::Deprecated>(LoadMapBitField3(map)); |
| 2877 } |
| 2878 |
| 2874 Node* CodeStubAssembler::IsCallable(Node* object) { | 2879 Node* CodeStubAssembler::IsCallable(Node* object) { |
| 2875 return IsCallableMap(LoadMap(object)); | 2880 return IsCallableMap(LoadMap(object)); |
| 2876 } | 2881 } |
| 2877 | 2882 |
| 2878 Node* CodeStubAssembler::IsConstructorMap(Node* map) { | 2883 Node* CodeStubAssembler::IsConstructorMap(Node* map) { |
| 2879 CSA_ASSERT(this, IsMap(map)); | 2884 CSA_ASSERT(this, IsMap(map)); |
| 2880 return Word32NotEqual( | 2885 return Word32NotEqual( |
| 2881 Word32And(LoadMapBitField(map), Int32Constant(1 << Map::kIsConstructor)), | 2886 Word32And(LoadMapBitField(map), Int32Constant(1 << Map::kIsConstructor)), |
| 2882 Int32Constant(0)); | 2887 Int32Constant(0)); |
| 2883 } | 2888 } |
| (...skipping 5532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8416 formatted.c_str(), TENURED); | 8421 formatted.c_str(), TENURED); |
| 8417 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), | 8422 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), |
| 8418 HeapConstant(string)); | 8423 HeapConstant(string)); |
| 8419 } | 8424 } |
| 8420 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); | 8425 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); |
| 8421 #endif | 8426 #endif |
| 8422 } | 8427 } |
| 8423 | 8428 |
| 8424 } // namespace internal | 8429 } // namespace internal |
| 8425 } // namespace v8 | 8430 } // namespace v8 |
| OLD | NEW |