| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "arguments.h" | 9 #include "arguments.h" |
| 10 #include "ic-inl.h" | 10 #include "ic-inl.h" |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 this->name(), interceptor_holder); | 1068 this->name(), interceptor_holder); |
| 1069 __ PushReturnAddressFrom(scratch2()); | 1069 __ PushReturnAddressFrom(scratch2()); |
| 1070 | 1070 |
| 1071 ExternalReference ref = ExternalReference( | 1071 ExternalReference ref = ExternalReference( |
| 1072 IC_Utility(IC::kLoadPropertyWithInterceptorForLoad), isolate()); | 1072 IC_Utility(IC::kLoadPropertyWithInterceptorForLoad), isolate()); |
| 1073 __ TailCallExternalReference(ref, StubCache::kInterceptorArgsLength, 1); | 1073 __ TailCallExternalReference(ref, StubCache::kInterceptorArgsLength, 1); |
| 1074 } | 1074 } |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 | 1077 |
| 1078 void StubCompiler::GenerateBooleanCheck(Register object, Label* miss) { | |
| 1079 Label success; | |
| 1080 // Check that the object is a boolean. | |
| 1081 __ Cmp(object, factory()->true_value()); | |
| 1082 __ j(equal, &success); | |
| 1083 __ Cmp(object, factory()->false_value()); | |
| 1084 __ j(not_equal, miss); | |
| 1085 __ bind(&success); | |
| 1086 } | |
| 1087 | |
| 1088 | |
| 1089 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 1078 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
| 1090 Handle<JSObject> object, | 1079 Handle<JSObject> object, |
| 1091 Handle<JSObject> holder, | 1080 Handle<JSObject> holder, |
| 1092 Handle<Name> name, | 1081 Handle<Name> name, |
| 1093 Handle<ExecutableAccessorInfo> callback) { | 1082 Handle<ExecutableAccessorInfo> callback) { |
| 1094 Register holder_reg = HandlerFrontend( | 1083 Register holder_reg = HandlerFrontend( |
| 1095 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); | 1084 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); |
| 1096 | 1085 |
| 1097 __ PopReturnAddressTo(scratch1()); | 1086 __ PopReturnAddressTo(scratch1()); |
| 1098 __ Push(receiver()); | 1087 __ Push(receiver()); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 // ----------------------------------- | 1442 // ----------------------------------- |
| 1454 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1443 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1455 } | 1444 } |
| 1456 | 1445 |
| 1457 | 1446 |
| 1458 #undef __ | 1447 #undef __ |
| 1459 | 1448 |
| 1460 } } // namespace v8::internal | 1449 } } // namespace v8::internal |
| 1461 | 1450 |
| 1462 #endif // V8_TARGET_ARCH_X64 | 1451 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |