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 2950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2961 } | 2961 } |
2962 | 2962 |
2963 Node* CodeStubAssembler::IsJSArray(Node* object) { | 2963 Node* CodeStubAssembler::IsJSArray(Node* object) { |
2964 return HasInstanceType(object, JS_ARRAY_TYPE); | 2964 return HasInstanceType(object, JS_ARRAY_TYPE); |
2965 } | 2965 } |
2966 | 2966 |
2967 Node* CodeStubAssembler::IsWeakCell(Node* object) { | 2967 Node* CodeStubAssembler::IsWeakCell(Node* object) { |
2968 return HasInstanceType(object, WEAK_CELL_TYPE); | 2968 return HasInstanceType(object, WEAK_CELL_TYPE); |
2969 } | 2969 } |
2970 | 2970 |
| 2971 Node* CodeStubAssembler::IsBoolean(Node* object) { |
| 2972 return IsBooleanMap(LoadMap(object)); |
| 2973 } |
| 2974 |
2971 Node* CodeStubAssembler::IsName(Node* object) { | 2975 Node* CodeStubAssembler::IsName(Node* object) { |
2972 return Int32LessThanOrEqual(LoadInstanceType(object), | 2976 return Int32LessThanOrEqual(LoadInstanceType(object), |
2973 Int32Constant(LAST_NAME_TYPE)); | 2977 Int32Constant(LAST_NAME_TYPE)); |
2974 } | 2978 } |
2975 | 2979 |
2976 Node* CodeStubAssembler::IsString(Node* object) { | 2980 Node* CodeStubAssembler::IsString(Node* object) { |
2977 return Int32LessThanOrEqual(LoadInstanceType(object), | 2981 return Int32LessThanOrEqual(LoadInstanceType(object), |
2978 Int32Constant(FIRST_NONSTRING_TYPE)); | 2982 Int32Constant(FIRST_NONSTRING_TYPE)); |
2979 } | 2983 } |
2980 | 2984 |
(...skipping 5428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8409 formatted.c_str(), TENURED); | 8413 formatted.c_str(), TENURED); |
8410 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), | 8414 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), |
8411 HeapConstant(string)); | 8415 HeapConstant(string)); |
8412 } | 8416 } |
8413 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); | 8417 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); |
8414 #endif | 8418 #endif |
8415 } | 8419 } |
8416 | 8420 |
8417 } // namespace internal | 8421 } // namespace internal |
8418 } // namespace v8 | 8422 } // namespace v8 |
OLD | NEW |