Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Side by Side Diff: src/a64/code-stubs-a64.cc

Issue 132753004: A64: Create a frame before calling InstanceOf builtin. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698