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 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2883 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); | 2883 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); |
2884 return Int32GreaterThanOrEqual(instance_type, | 2884 return Int32GreaterThanOrEqual(instance_type, |
2885 Int32Constant(FIRST_JS_RECEIVER_TYPE)); | 2885 Int32Constant(FIRST_JS_RECEIVER_TYPE)); |
2886 } | 2886 } |
2887 | 2887 |
2888 Node* CodeStubAssembler::IsJSReceiver(Node* object) { | 2888 Node* CodeStubAssembler::IsJSReceiver(Node* object) { |
2889 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); | 2889 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); |
2890 return IsJSReceiverInstanceType(LoadInstanceType(object)); | 2890 return IsJSReceiverInstanceType(LoadInstanceType(object)); |
2891 } | 2891 } |
2892 | 2892 |
| 2893 Node* CodeStubAssembler::IsJSReceiverMap(Node* map) { |
| 2894 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); |
| 2895 return IsJSReceiverInstanceType(LoadMapInstanceType(map)); |
| 2896 } |
| 2897 |
2893 Node* CodeStubAssembler::IsJSObject(Node* object) { | 2898 Node* CodeStubAssembler::IsJSObject(Node* object) { |
2894 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); | 2899 STATIC_ASSERT(LAST_JS_OBJECT_TYPE == LAST_TYPE); |
2895 return Int32GreaterThanOrEqual(LoadInstanceType(object), | 2900 return Int32GreaterThanOrEqual(LoadInstanceType(object), |
2896 Int32Constant(FIRST_JS_RECEIVER_TYPE)); | 2901 Int32Constant(FIRST_JS_RECEIVER_TYPE)); |
2897 } | 2902 } |
2898 | 2903 |
2899 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) { | 2904 Node* CodeStubAssembler::IsJSGlobalProxy(Node* object) { |
2900 return Word32Equal(LoadInstanceType(object), | 2905 return Word32Equal(LoadInstanceType(object), |
2901 Int32Constant(JS_GLOBAL_PROXY_TYPE)); | 2906 Int32Constant(JS_GLOBAL_PROXY_TYPE)); |
2902 } | 2907 } |
(...skipping 5496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8399 formatted.c_str(), TENURED); | 8404 formatted.c_str(), TENURED); |
8400 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), | 8405 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), |
8401 HeapConstant(string)); | 8406 HeapConstant(string)); |
8402 } | 8407 } |
8403 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); | 8408 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); |
8404 #endif | 8409 #endif |
8405 } | 8410 } |
8406 | 8411 |
8407 } // namespace internal | 8412 } // namespace internal |
8408 } // namespace v8 | 8413 } // namespace v8 |
OLD | NEW |