| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3331 | 3331 |
| 3332 __ Bind(&object_not_null_or_smi); | 3332 __ Bind(&object_not_null_or_smi); |
| 3333 // String values are not instances of anything. | 3333 // String values are not instances of anything. |
| 3334 __ IsObjectJSStringType(object, x7, &slow); | 3334 __ IsObjectJSStringType(object, x7, &slow); |
| 3335 __ Mov(result, Operand(Smi::FromInt(1))); | 3335 __ Mov(result, Operand(Smi::FromInt(1))); |
| 3336 __ Ret(); | 3336 __ Ret(); |
| 3337 | 3337 |
| 3338 // Slow-case. Tail call builtin. | 3338 // Slow-case. Tail call builtin. |
| 3339 __ Bind(&slow); | 3339 __ Bind(&slow); |
| 3340 if (!ReturnTrueFalseObject()) { | 3340 if (!ReturnTrueFalseObject()) { |
| 3341 FrameScope scope(masm, StackFrame::INTERNAL); |
| 3341 // Arguments have either been passed into registers or have been previously | 3342 // Arguments have either been passed into registers or have been previously |
| 3342 // popped. We need to push them before calling builtin. | 3343 // popped. We need to push them before calling builtin. |
| 3343 __ Push(object, function); | 3344 __ Push(object, function); |
| 3344 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 3345 __ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_FUNCTION); |
| 3345 } else { | 3346 } else { |
| 3346 ASM_UNIMPLEMENTED("InstanceofStub call builtin and return object"); | 3347 ASM_UNIMPLEMENTED("InstanceofStub call builtin and return object"); |
| 3347 } | 3348 } |
| 3349 __ Ret(); |
| 3348 } | 3350 } |
| 3349 | 3351 |
| 3350 | 3352 |
| 3351 Register InstanceofStub::left() { | 3353 Register InstanceofStub::left() { |
| 3352 // Object to check (instanceof lhs). | 3354 // Object to check (instanceof lhs). |
| 3353 return x11; | 3355 return x11; |
| 3354 } | 3356 } |
| 3355 | 3357 |
| 3356 | 3358 |
| 3357 Register InstanceofStub::right() { | 3359 Register InstanceofStub::right() { |
| (...skipping 3980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7338 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7340 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 7339 } | 7341 } |
| 7340 } | 7342 } |
| 7341 | 7343 |
| 7342 | 7344 |
| 7343 #undef __ | 7345 #undef __ |
| 7344 | 7346 |
| 7345 } } // namespace v8::internal | 7347 } } // namespace v8::internal |
| 7346 | 7348 |
| 7347 #endif // V8_TARGET_ARCH_A64 | 7349 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |