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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 2860049: Port prototype-call-stubs for normal objects (http://codereview.chromium.org/... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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 | « src/ic.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 // Push a new try handler and link into try handler chain. The return 589 // Push a new try handler and link into try handler chain. The return
590 // address must be pushed before calling this helper. 590 // address must be pushed before calling this helper.
591 void PushTryHandler(CodeLocation try_location, HandlerType type); 591 void PushTryHandler(CodeLocation try_location, HandlerType type);
592 592
593 // Unlink the stack handler on top of the stack from the try handler chain. 593 // Unlink the stack handler on top of the stack from the try handler chain.
594 void PopTryHandler(); 594 void PopTryHandler();
595 595
596 // --------------------------------------------------------------------------- 596 // ---------------------------------------------------------------------------
597 // Inline caching support 597 // Inline caching support
598 598
599 // Generates code that verifies that the maps of objects in the
600 // prototype chain of object hasn't changed since the code was
601 // generated and branches to the miss label if any map has. If
602 // necessary the function also generates code for security check
603 // in case of global object holders. The scratch and holder
604 // registers are always clobbered, but the object register is only
605 // clobbered if it the same as the holder register. The function
606 // returns a register containing the holder - either object_reg or
607 // holder_reg.
608 // The function can optionally (when save_at_depth !=
609 // kInvalidProtoDepth) save the object at the given depth by moving
610 // it to [rsp + kPointerSize].
611 Register CheckMaps(JSObject* object, Register object_reg,
612 JSObject* holder, Register holder_reg,
613 Register scratch,
614 int save_at_depth,
615 Label* miss);
616
617 // Generate code for checking access rights - used for security checks 599 // Generate code for checking access rights - used for security checks
618 // on access to global objects across environments. The holder register 600 // on access to global objects across environments. The holder register
619 // is left untouched, but the scratch register and kScratchRegister, 601 // is left untouched, but the scratch register and kScratchRegister,
620 // which must be different, are clobbered. 602 // which must be different, are clobbered.
621 void CheckAccessGlobalProxy(Register holder_reg, 603 void CheckAccessGlobalProxy(Register holder_reg,
622 Register scratch, 604 Register scratch,
623 Label* miss); 605 Label* miss);
624 606
625 607
626 // --------------------------------------------------------------------------- 608 // ---------------------------------------------------------------------------
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 } \ 907 } \
926 masm-> 908 masm->
927 #else 909 #else
928 #define ACCESS_MASM(masm) masm-> 910 #define ACCESS_MASM(masm) masm->
929 #endif 911 #endif
930 912
931 913
932 } } // namespace v8::internal 914 } } // namespace v8::internal
933 915
934 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 916 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698