| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 | 1006 |
| 1007 | 1007 |
| 1008 bool ToBooleanStub::Types::NeedsMap() const { | 1008 bool ToBooleanStub::Types::NeedsMap() const { |
| 1009 return Contains(ToBooleanStub::SPEC_OBJECT) || | 1009 return Contains(ToBooleanStub::SPEC_OBJECT) || |
| 1010 Contains(ToBooleanStub::STRING) || Contains(ToBooleanStub::SYMBOL) || | 1010 Contains(ToBooleanStub::STRING) || Contains(ToBooleanStub::SYMBOL) || |
| 1011 Contains(ToBooleanStub::HEAP_NUMBER) || | 1011 Contains(ToBooleanStub::HEAP_NUMBER) || |
| 1012 Contains(ToBooleanStub::SIMD_VALUE); | 1012 Contains(ToBooleanStub::SIMD_VALUE); |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 | 1015 |
| 1016 bool ToBooleanStub::Types::CanBeUndetectable() const { | |
| 1017 return Contains(ToBooleanStub::SPEC_OBJECT) | |
| 1018 || Contains(ToBooleanStub::STRING); | |
| 1019 } | |
| 1020 | |
| 1021 | |
| 1022 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { | 1016 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
| 1023 StubFailureTrampolineStub stub1(isolate, NOT_JS_FUNCTION_STUB_MODE); | 1017 StubFailureTrampolineStub stub1(isolate, NOT_JS_FUNCTION_STUB_MODE); |
| 1024 StubFailureTrampolineStub stub2(isolate, JS_FUNCTION_STUB_MODE); | 1018 StubFailureTrampolineStub stub2(isolate, JS_FUNCTION_STUB_MODE); |
| 1025 stub1.GetCode(); | 1019 stub1.GetCode(); |
| 1026 stub2.GetCode(); | 1020 stub2.GetCode(); |
| 1027 } | 1021 } |
| 1028 | 1022 |
| 1029 | 1023 |
| 1030 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, | 1024 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, |
| 1031 intptr_t stack_pointer, | 1025 intptr_t stack_pointer, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 | 1070 |
| 1077 if (type->Is(Type::UntaggedPointer())) { | 1071 if (type->Is(Type::UntaggedPointer())) { |
| 1078 return Representation::External(); | 1072 return Representation::External(); |
| 1079 } | 1073 } |
| 1080 | 1074 |
| 1081 DCHECK(!type->Is(Type::Untagged())); | 1075 DCHECK(!type->Is(Type::Untagged())); |
| 1082 return Representation::Tagged(); | 1076 return Representation::Tagged(); |
| 1083 } | 1077 } |
| 1084 } // namespace internal | 1078 } // namespace internal |
| 1085 } // namespace v8 | 1079 } // namespace v8 |
| OLD | NEW |