OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "ic-inl.h" | 9 #include "ic-inl.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 masm(), receiver(), holder_reg, this->name(), interceptor_holder); | 1129 masm(), receiver(), holder_reg, this->name(), interceptor_holder); |
1130 | 1130 |
1131 ExternalReference ref = | 1131 ExternalReference ref = |
1132 ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorForLoad), | 1132 ExternalReference(IC_Utility(IC::kLoadPropertyWithInterceptorForLoad), |
1133 isolate()); | 1133 isolate()); |
1134 __ TailCallExternalReference(ref, StubCache::kInterceptorArgsLength, 1); | 1134 __ TailCallExternalReference(ref, StubCache::kInterceptorArgsLength, 1); |
1135 } | 1135 } |
1136 } | 1136 } |
1137 | 1137 |
1138 | 1138 |
1139 void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) { | |
1140 UseScratchRegisterScope temps(masm()); | |
1141 // Check that the object is a boolean. | |
1142 Register true_root = temps.AcquireX(); | |
1143 Register false_root = temps.AcquireX(); | |
1144 ASSERT(!AreAliased(object, true_root, false_root)); | |
1145 __ LoadTrueFalseRoots(true_root, false_root); | |
1146 __ Cmp(object, true_root); | |
1147 __ Ccmp(object, false_root, ZFlag, ne); | |
1148 __ B(ne, miss); | |
1149 } | |
1150 | |
1151 | |
1152 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 1139 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
1153 Handle<JSObject> object, | 1140 Handle<JSObject> object, |
1154 Handle<JSObject> holder, | 1141 Handle<JSObject> holder, |
1155 Handle<Name> name, | 1142 Handle<Name> name, |
1156 Handle<ExecutableAccessorInfo> callback) { | 1143 Handle<ExecutableAccessorInfo> callback) { |
1157 ASM_LOCATION("StoreStubCompiler::CompileStoreCallback"); | 1144 ASM_LOCATION("StoreStubCompiler::CompileStoreCallback"); |
1158 Register holder_reg = HandlerFrontend( | 1145 Register holder_reg = HandlerFrontend( |
1159 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); | 1146 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); |
1160 | 1147 |
1161 // Stub never generated for non-global objects that require access checks. | 1148 // Stub never generated for non-global objects that require access checks. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 | 1483 |
1497 // Miss case, call the runtime. | 1484 // Miss case, call the runtime. |
1498 __ Bind(&miss); | 1485 __ Bind(&miss); |
1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1486 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1500 } | 1487 } |
1501 | 1488 |
1502 | 1489 |
1503 } } // namespace v8::internal | 1490 } } // namespace v8::internal |
1504 | 1491 |
1505 #endif // V8_TARGET_ARCH_ARM64 | 1492 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |