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 7691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7702 | 7702 |
7703 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == (FAST_SMI_ELEMENTS | 1)); | 7703 STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == (FAST_SMI_ELEMENTS | 1)); |
7704 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == (FAST_ELEMENTS | 1)); | 7704 STATIC_ASSERT(FAST_HOLEY_ELEMENTS == (FAST_ELEMENTS | 1)); |
7705 STATIC_ASSERT(FAST_HOLEY_DOUBLE_ELEMENTS == (FAST_DOUBLE_ELEMENTS | 1)); | 7705 STATIC_ASSERT(FAST_HOLEY_DOUBLE_ELEMENTS == (FAST_DOUBLE_ELEMENTS | 1)); |
7706 | 7706 |
7707 // Check prototype chain if receiver does not have packed elements. | 7707 // Check prototype chain if receiver does not have packed elements. |
7708 Node* holey_elements = Word32And(elements_kind, Int32Constant(1)); | 7708 Node* holey_elements = Word32And(elements_kind, Int32Constant(1)); |
7709 return Word32Equal(holey_elements, Int32Constant(1)); | 7709 return Word32Equal(holey_elements, Int32Constant(1)); |
7710 } | 7710 } |
7711 | 7711 |
| 7712 compiler::Node* CodeStubAssembler::IsDebugActive() { |
| 7713 Node* is_debug_active = Load( |
| 7714 MachineType::Uint8(), |
| 7715 ExternalConstant(ExternalReference::debug_is_active_address(isolate()))); |
| 7716 return WordNotEqual(is_debug_active, Int32Constant(0)); |
| 7717 } |
| 7718 |
7712 } // namespace internal | 7719 } // namespace internal |
7713 } // namespace v8 | 7720 } // namespace v8 |
OLD | NEW |